@Deprecated public class OslcClient extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
OslcClient.OAuthHttpPool
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.impl.client.DefaultHttpClient |
httpClient
Deprecated.
|
Constructor and Description |
---|
OslcClient()
Deprecated.
Initialize a new OslcClient using an Apache Http Components 4 Http client and configuration.
|
OslcClient(TrustManager[] trustManagers,
org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Deprecated.
Initialize a new OslcClient using an Apache Http Components 4 Http client and configuration.
|
Modifier and Type | Method and Description |
---|---|
org.apache.wink.client.ClientResponse |
createResource(String url,
Object artifact,
String mediaType)
Deprecated.
Create (POST) an artifact to a URL - usually an OSLC Creation Factory
|
org.apache.wink.client.ClientResponse |
createResource(String url,
Object artifact,
String mediaType,
String acceptType)
Deprecated.
Create (POST) an artifact to a URL - usually an OSLC Creation Factory
|
org.apache.wink.client.ClientResponse |
deleteResource(String url)
Deprecated.
Delete an OSLC resource and return a Wink ClientResponse
|
protected org.apache.wink.client.ClientConfig |
getClientConfig()
Deprecated.
|
protected net.oauth.client.httpclient4.HttpClientPool |
getClientPool()
Deprecated.
|
String |
getConfiguredSecureSocketProtocol()
Deprecated.
Returns theSecure Sockect Protocol associated with this OSLC Client
|
org.apache.http.client.HttpClient |
getHttpClient()
Deprecated.
Returns the HTTP client associated with this OSLC Client
|
org.apache.wink.client.Resource |
getQueryResource(OslcQuery query)
Deprecated.
Create a Wink Resource for the given OslcQuery object
|
org.apache.wink.client.ClientResponse |
getResource(String url)
Deprecated.
Gets an OSLC resource using
application/rdf+xml . |
org.apache.wink.client.ClientResponse |
getResource(String url,
Map<String,String> requestHeaders)
Deprecated.
Gets an OSLC resource.
|
protected org.apache.wink.client.ClientResponse |
getResource(String url,
Map<String,String> requestHeaders,
String defaultMediaType)
Deprecated.
|
org.apache.wink.client.ClientResponse |
getResource(String url,
String mediaType)
Deprecated.
Gets an OSLC resource.
|
String |
lookupCreationFactory(String serviceProviderUrl,
String oslcDomain,
String oslcResourceType)
Deprecated.
Find the OSLC Creation Factory URL for a given OSLC resource type.
|
String |
lookupCreationFactory(String serviceProviderUrl,
String oslcDomain,
String oslcResourceType,
String oslcUsage)
Deprecated.
Find the OSLC Creation Factory URL for a given OSLC resource type and OSLC usage.
|
org.eclipse.lyo.oslc4j.core.model.CreationFactory |
lookupCreationFactoryResource(String serviceProviderUrl,
String oslcDomain,
String oslcResourceType)
Deprecated.
|
org.eclipse.lyo.oslc4j.core.model.CreationFactory |
lookupCreationFactoryResource(String serviceProviderUrl,
String oslcDomain,
String oslcResourceType,
String oslcUsage)
Deprecated.
|
String |
lookupQueryCapability(String serviceProviderUrl,
String oslcDomain,
String oslcResourceType)
Deprecated.
Find the OSLC Query Capability URL for a given OSLC resource type.
|
String |
lookupServiceProviderUrl(String catalogUrl,
String serviceProviderTitle)
Deprecated.
Lookup the URL of a specific OSLC Service Provider in an OSLC Catalog using the service provider's title
|
void |
setConfiguredSecureSocketProtocol(String configuredSecureSocketProtocol)
Deprecated.
Sets the Secure Socket Protocol to be used, valid values "TLSv1.2","TLS","SSL","SSL_TLS".
|
org.apache.wink.client.ClientResponse |
updateResource(String url,
Object artifact,
String mediaType)
Deprecated.
Update (PUT) an artifact to a URL - usually the URL for an existing OSLC artifact
|
org.apache.wink.client.ClientResponse |
updateResource(String url,
Object artifact,
String mediaType,
String acceptType)
Deprecated.
Update (PUT) an artifact to a URL - usually the URL for an existing OSLC artifact
|
org.apache.wink.client.ClientResponse |
updateResource(String url,
Object artifact,
String mediaType,
String acceptType,
String ifMatch)
Deprecated.
Update (PUT) an artifact to a URL - usually the URL for an existing OSLC artifact
|
protected org.apache.http.impl.client.DefaultHttpClient httpClient
public OslcClient()
public OslcClient(TrustManager[] trustManagers, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
public String getConfiguredSecureSocketProtocol()
public void setConfiguredSecureSocketProtocol(String configuredSecureSocketProtocol)
public org.apache.http.client.HttpClient getHttpClient()
protected net.oauth.client.httpclient4.HttpClientPool getClientPool()
protected org.apache.wink.client.ClientConfig getClientConfig()
public org.apache.wink.client.ClientResponse getResource(String url) throws IOException, net.oauth.OAuthException, URISyntaxException
application/rdf+xml
. Use
getResource(String, String)
to specify the media type or
getResource(String, Map)
to add other request headers. Call
ClientResponse.getEntity(Class)
on the response to get the
OSLC4J-annotated Java object.url
- the resource URLIOException
net.oauth.OAuthException
URISyntaxException
public org.apache.wink.client.ClientResponse getResource(String url, String mediaType) throws IOException, net.oauth.OAuthException, URISyntaxException
getResource(String, Map)
instead to
add other request headers. Call ClientResponse.getEntity(Class)
on the response to get the OSLC4J-annotated Java object.url
- the resource URLmediaType
- the requested media type to use in the HTTP Accept request
headerIOException
net.oauth.OAuthException
URISyntaxException
public org.apache.wink.client.ClientResponse getResource(String url, Map<String,String> requestHeaders) throws IOException, net.oauth.OAuthException, URISyntaxException
ClientResponse.getEntity(Class)
on
the response to get the OSLC4J-annotated Java object.url
- the resource URLrequestHeaders
- the HTTP request headers to use. If the Accept
header is not in the map, it defaults to
application/rdf+xml
. If
OSLC-Core-Version
is not in the map, it defaults
to 2.0
.IOException
net.oauth.OAuthException
URISyntaxException
protected org.apache.wink.client.ClientResponse getResource(String url, Map<String,String> requestHeaders, String defaultMediaType) throws IOException, net.oauth.OAuthException, URISyntaxException
IOException
net.oauth.OAuthException
URISyntaxException
public org.apache.wink.client.ClientResponse deleteResource(String url) throws IOException, net.oauth.OAuthException, URISyntaxException
url
- IOException
net.oauth.OAuthException
URISyntaxException
public org.apache.wink.client.ClientResponse createResource(String url, Object artifact, String mediaType) throws IOException, net.oauth.OAuthException, URISyntaxException
url
- artifact
- mediaType
- URISyntaxException
net.oauth.OAuthException
IOException
public org.apache.wink.client.ClientResponse createResource(String url, Object artifact, String mediaType, String acceptType) throws IOException, net.oauth.OAuthException, URISyntaxException
url
- artifact
- mediaType
- acceptType
- URISyntaxException
net.oauth.OAuthException
IOException
public org.apache.wink.client.ClientResponse updateResource(String url, Object artifact, String mediaType)
url
- artifact
- mediaType
- public org.apache.wink.client.ClientResponse updateResource(String url, Object artifact, String mediaType, String acceptType)
url
- artifact
- mediaType
- acceptType
- public org.apache.wink.client.ClientResponse updateResource(String url, Object artifact, String mediaType, String acceptType, String ifMatch) throws IOException, net.oauth.OAuthException, URISyntaxException
url
- artifact
- mediaType
- acceptType
- URISyntaxException
net.oauth.OAuthException
IOException
public org.apache.wink.client.Resource getQueryResource(OslcQuery query)
query
- public String lookupServiceProviderUrl(String catalogUrl, String serviceProviderTitle) throws IOException, net.oauth.OAuthException, URISyntaxException, org.eclipse.lyo.client.exception.ResourceNotFoundException
catalogUrl
- serviceProviderTitle
- IOException
net.oauth.OAuthException
URISyntaxException
org.eclipse.lyo.client.exception.ResourceNotFoundException
public String lookupQueryCapability(String serviceProviderUrl, String oslcDomain, String oslcResourceType) throws IOException, net.oauth.OAuthException, URISyntaxException, org.eclipse.lyo.client.exception.ResourceNotFoundException
serviceProviderUrl
- oslcDomain
- oslcResourceType
- - the resource type of the desired query capability. This may differ from the OSLC artifact type.IOException
net.oauth.OAuthException
URISyntaxException
org.eclipse.lyo.client.exception.ResourceNotFoundException
public org.eclipse.lyo.oslc4j.core.model.CreationFactory lookupCreationFactoryResource(String serviceProviderUrl, String oslcDomain, String oslcResourceType) throws IOException, net.oauth.OAuthException, URISyntaxException, org.eclipse.lyo.client.exception.ResourceNotFoundException
IOException
net.oauth.OAuthException
URISyntaxException
org.eclipse.lyo.client.exception.ResourceNotFoundException
public org.eclipse.lyo.oslc4j.core.model.CreationFactory lookupCreationFactoryResource(String serviceProviderUrl, String oslcDomain, String oslcResourceType, String oslcUsage) throws IOException, net.oauth.OAuthException, URISyntaxException, org.eclipse.lyo.client.exception.ResourceNotFoundException
IOException
net.oauth.OAuthException
URISyntaxException
org.eclipse.lyo.client.exception.ResourceNotFoundException
public String lookupCreationFactory(String serviceProviderUrl, String oslcDomain, String oslcResourceType) throws IOException, net.oauth.OAuthException, URISyntaxException, org.eclipse.lyo.client.exception.ResourceNotFoundException
serviceProviderUrl
- oslcDomain
- oslcResourceType
- - the resource type of the desired query capability. This may differ from the OSLC artifact type.IOException
net.oauth.OAuthException
URISyntaxException
org.eclipse.lyo.client.exception.ResourceNotFoundException
public String lookupCreationFactory(String serviceProviderUrl, String oslcDomain, String oslcResourceType, String oslcUsage) throws IOException, net.oauth.OAuthException, URISyntaxException, org.eclipse.lyo.client.exception.ResourceNotFoundException
serviceProviderUrl
- oslcDomain
- oslcResourceType
- - the resource type of the desired query capability. This may differ from the OSLC artifact type.IOException
net.oauth.OAuthException
URISyntaxException
org.eclipse.lyo.client.exception.ResourceNotFoundException
Copyright © 2020. All rights reserved.