|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpClient
A service providing asynchronous HTTP request creation and execution.
To use this service, first create a Request instance with one of the newRequest()
methods. Then, populate the request with any additional options, and finally call one of its HTTP verb
methods to execute the request. See the Request class for finer control over the construction
of the HTTP requests to be executed.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
Request newRequest()
Request newRequest(java.net.URI uri)
uri - The endpoint URI for this request
Request newRequest(java.lang.String uri)
uri - The endpoint URI for this request
Request newRequest(java.net.URI uri,
java.lang.String contentType,
java.lang.String entity)
uri - The endpoint URI for this requestcontentType - A textual IANA media typeentity - A string entity to send as this request's message body
Request newRequest(java.lang.String uri,
java.lang.String contentType,
java.lang.String entity)
uri - The endpoint URI for this requestcontentType - A textual IANA media typeentity - A string entity to send as this request's message body
void flushCacheByUriPattern(java.util.regex.Pattern uriPattern)
uriPattern - The regular expression to match
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||