|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.common.collect.ForwardingObject
com.atlassian.httpclient.api.ForwardingHttpClient
public abstract class ForwardingHttpClient
An HTTP Client which forwards all its method calls to another HTTP Client. Subclasses should override one or more methods to modify the behavior of the backing HTTP Client as desired per the decorator pattern.
| Constructor Summary | |
|---|---|
protected |
ForwardingHttpClient()
Constructor for use by subclasses. |
| Method Summary | |
|---|---|
protected abstract HttpClient |
delegate()
|
void |
flushCacheByUriPattern(java.util.regex.Pattern uriPattern)
Flush the cache entries by matching the URI using a regular expression |
Request |
newRequest()
Constructs a new request. |
Request |
newRequest(java.lang.String uri)
Constructs a new Request with the specified URI. |
Request |
newRequest(java.lang.String uri,
java.lang.String contentType,
java.lang.String entity)
Constructs a new Request with the specified URI, contentType, and entity. |
Request |
newRequest(java.net.URI uri)
Constructs a new Request with the specified URI. |
Request |
newRequest(java.net.URI uri,
java.lang.String contentType,
java.lang.String entity)
Constructs a new Request with the specified URI, contentType, and entity. |
| Methods inherited from class com.google.common.collect.ForwardingObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ForwardingHttpClient()
| Method Detail |
|---|
protected abstract HttpClient delegate()
delegate in class com.google.common.collect.ForwardingObjectpublic Request newRequest()
HttpClient
newRequest in interface HttpClientpublic Request newRequest(java.net.URI uri)
HttpClient
newRequest in interface HttpClienturi - The endpoint URI for this request
public Request newRequest(java.lang.String uri)
HttpClient
newRequest in interface HttpClienturi - The endpoint URI for this request
public Request newRequest(java.net.URI uri,
java.lang.String contentType,
java.lang.String entity)
HttpClient
newRequest in interface HttpClienturi - The endpoint URI for this requestcontentType - A textual IANA media typeentity - A string entity to send as this request's message body
public Request newRequest(java.lang.String uri,
java.lang.String contentType,
java.lang.String entity)
HttpClient
newRequest in interface HttpClienturi - The endpoint URI for this requestcontentType - A textual IANA media typeentity - A string entity to send as this request's message body
public void flushCacheByUriPattern(java.util.regex.Pattern uriPattern)
HttpClient
flushCacheByUriPattern in interface HttpClienturiPattern - The regular expression to match
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||