|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openid4java.util.AbstractHttpFetcher
public abstract class AbstractHttpFetcher
| Constructor Summary | |
|---|---|
AbstractHttpFetcher()
|
|
| Method Summary | |
|---|---|
HttpResponse |
get(java.lang.String url)
GETs a HTTP URL. |
abstract HttpResponse |
get(java.lang.String url,
HttpRequestOptions requestOptions)
GETs a HTTP URL. |
HttpRequestOptions |
getDefaultRequestOptions()
Returns the default HttpRequestOptions. |
HttpRequestOptions |
getRequestOptions()
Gets a clone of the default HttpRequestOptions. |
HttpResponse |
head(java.lang.String url)
|
abstract HttpResponse |
head(java.lang.String url,
HttpRequestOptions requestOptions)
|
HttpResponse |
post(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> parameters)
|
abstract HttpResponse |
post(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> parameters,
HttpRequestOptions requestOptions)
|
void |
setDefaultRequestOptions(HttpRequestOptions defaultOptions)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractHttpFetcher()
| Method Detail |
|---|
public HttpResponse get(java.lang.String url)
throws java.io.IOException
HttpFetcher
get in interface HttpFetcherurl - The HTTP URL to GET.
java.io.IOExceptionHttpResponse
public abstract HttpResponse get(java.lang.String url,
HttpRequestOptions requestOptions)
throws java.io.IOException
HttpFetcher
get in interface HttpFetcherurl - The HTTP URL to GET.
java.io.IOExceptionHttpRequestOptions, HttpResponsepublic HttpRequestOptions getDefaultRequestOptions()
HttpFetcherHttpRequestOptions. Note that this does
not return a clone, so manipulating the object returned here will
manipulate the HttpRequestOptions used by the HttpFetcher.
getDefaultRequestOptions in interface HttpFetcherpublic HttpRequestOptions getRequestOptions()
HttpFetcher
getRequestOptions in interface HttpFetcher
public HttpResponse head(java.lang.String url)
throws java.io.IOException
head in interface HttpFetcherjava.io.IOException
public abstract HttpResponse post(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> parameters,
HttpRequestOptions requestOptions)
throws java.io.IOException
post in interface HttpFetcherjava.io.IOException
public HttpResponse post(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> parameters)
throws java.io.IOException
post in interface HttpFetcherjava.io.IOException
public abstract HttpResponse head(java.lang.String url,
HttpRequestOptions requestOptions)
throws java.io.IOException
head in interface HttpFetcherjava.io.IOExceptionpublic void setDefaultRequestOptions(HttpRequestOptions defaultOptions)
setDefaultRequestOptions in interface HttpFetcher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||