|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.abdera.protocol.client.Client
public abstract class Client
An Atom Publishing Protocol client.
Field Summary | |
---|---|
protected Abdera |
abdera
|
protected Cache |
cache
|
Constructor Summary | |
---|---|
|
Client()
|
protected |
Client(Abdera abdera)
|
Method Summary | ||
---|---|---|
abstract void |
addCredentials(java.lang.String target,
java.lang.String realm,
java.lang.String scheme,
org.apache.commons.httpclient.Credentials credentials)
Add a set of authentication credentials to the client. |
|
ClientResponse |
delete(java.lang.String uri)
|
|
ClientResponse |
delete(java.lang.String uri,
RequestOptions options)
|
|
abstract ClientResponse |
execute(java.lang.String method,
java.lang.String uri,
org.apache.commons.httpclient.methods.RequestEntity entity,
RequestOptions options)
Execute an arbitrary HTTP request |
|
ClientResponse |
get(java.lang.String uri)
|
|
ClientResponse |
get(java.lang.String uri,
RequestOptions options)
|
|
Cache |
getCache()
|
|
abstract RequestOptions |
getDefaultRequestOptions()
Get the default request options used by this client. |
|
ClientResponse |
head(java.lang.String uri)
|
|
ClientResponse |
head(java.lang.String uri,
RequestOptions options)
|
|
Cache |
initCache(CacheFactory factory)
|
|
ClientResponse |
post(java.lang.String uri,
Base base)
|
|
ClientResponse |
post(java.lang.String uri,
Base base,
RequestOptions options)
|
|
ClientResponse |
post(java.lang.String uri,
java.io.InputStream in)
|
|
ClientResponse |
post(java.lang.String uri,
java.io.InputStream in,
RequestOptions options)
|
|
ClientResponse |
post(java.lang.String uri,
org.apache.commons.httpclient.methods.RequestEntity entity)
|
|
ClientResponse |
post(java.lang.String uri,
org.apache.commons.httpclient.methods.RequestEntity entity,
RequestOptions options)
|
|
ClientResponse |
put(java.lang.String uri,
Base base)
|
|
ClientResponse |
put(java.lang.String uri,
Base base,
RequestOptions options)
|
|
ClientResponse |
put(java.lang.String uri,
java.io.InputStream in)
|
|
ClientResponse |
put(java.lang.String uri,
java.io.InputStream in,
RequestOptions options)
|
|
ClientResponse |
put(java.lang.String uri,
org.apache.commons.httpclient.methods.RequestEntity entity)
|
|
ClientResponse |
put(java.lang.String uri,
org.apache.commons.httpclient.methods.RequestEntity entity,
RequestOptions options)
|
|
static void |
registerFactory(org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory factory,
int port)
|
|
static
|
registerScheme(java.lang.String name,
java.lang.Class<T> scheme)
Register a new authentication scheme. |
|
static void |
registerTrustManager()
|
|
static void |
registerTrustManager(int port)
|
|
static void |
registerTrustManager(javax.net.ssl.TrustManager trustManager)
|
|
static void |
registerTrustManager(javax.net.ssl.TrustManager trustManager,
int port)
|
|
abstract void |
setAuthenticationSchemePriority(java.lang.String... scheme)
Set the order in which authentication schemes should be used. |
|
void |
teardown()
Explicitly tear down the Client instance |
|
abstract void |
usePreemptiveAuthentication(boolean val)
Indicates if the client should authenticate before attempting to do anything else. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Abdera abdera
protected final Cache cache
Constructor Detail |
---|
public Client()
protected Client(Abdera abdera)
Method Detail |
---|
public abstract RequestOptions getDefaultRequestOptions()
public abstract void addCredentials(java.lang.String target, java.lang.String realm, java.lang.String scheme, org.apache.commons.httpclient.Credentials credentials) throws java.net.URISyntaxException
target
- The URI for which you wish to authenticaterealm
- The authentication realm these credentials apply to,
or null if the credentials apply to any realmscheme
- The authentication scheme these credentials apply to,
or null if the credentials apply to any schemecredentials
- The credentials to use
java.net.URISyntaxException
public abstract void setAuthenticationSchemePriority(java.lang.String... scheme)
public abstract void usePreemptiveAuthentication(boolean val)
public Cache getCache()
public Cache initCache(CacheFactory factory)
public ClientResponse head(java.lang.String uri, RequestOptions options)
public ClientResponse get(java.lang.String uri, RequestOptions options)
public ClientResponse post(java.lang.String uri, org.apache.commons.httpclient.methods.RequestEntity entity, RequestOptions options)
public ClientResponse post(java.lang.String uri, java.io.InputStream in, RequestOptions options)
public ClientResponse post(java.lang.String uri, Base base, RequestOptions options)
public ClientResponse put(java.lang.String uri, org.apache.commons.httpclient.methods.RequestEntity entity, RequestOptions options)
public ClientResponse put(java.lang.String uri, java.io.InputStream in, RequestOptions options)
public ClientResponse put(java.lang.String uri, Base base, RequestOptions options)
public ClientResponse delete(java.lang.String uri, RequestOptions options)
public ClientResponse head(java.lang.String uri)
public ClientResponse get(java.lang.String uri)
public ClientResponse post(java.lang.String uri, org.apache.commons.httpclient.methods.RequestEntity entity)
public ClientResponse post(java.lang.String uri, java.io.InputStream in)
public ClientResponse post(java.lang.String uri, Base base)
public ClientResponse put(java.lang.String uri, org.apache.commons.httpclient.methods.RequestEntity entity)
public ClientResponse put(java.lang.String uri, java.io.InputStream in)
public ClientResponse put(java.lang.String uri, Base base)
public ClientResponse delete(java.lang.String uri)
public abstract ClientResponse execute(java.lang.String method, java.lang.String uri, org.apache.commons.httpclient.methods.RequestEntity entity, RequestOptions options)
method
- The method nameuri
- The URI to execute the request onentity
- The request entity to use for generating the requestoptions
- The options to use for this request
public static <T extends org.apache.commons.httpclient.auth.AuthScheme> void registerScheme(java.lang.String name, java.lang.Class<T> scheme)
name
- scheme
- public static void registerTrustManager(javax.net.ssl.TrustManager trustManager)
public static void registerTrustManager()
public static void registerTrustManager(javax.net.ssl.TrustManager trustManager, int port)
public static void registerTrustManager(int port)
public static void registerFactory(org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory factory, int port)
public void teardown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |