|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.client.http.HttpTransport
public class HttpTransport
HTTP transport.
Warning: this class must not be sub-classed. It is scheduled to be made final in version 1.1.
| Field Summary | |
|---|---|
HttpHeaders |
defaultHeaders
Default HTTP headers. |
List<HttpExecuteIntercepter> |
intercepters
HTTP request execute intercepters. |
| Constructor Summary | |
|---|---|
HttpTransport()
|
|
| Method Summary | |
|---|---|
void |
addParser(HttpParser parser)
Adds an HTTP response content parser. |
HttpRequest |
buildDeleteRequest()
Builds a DELETE request. |
HttpRequest |
buildGetRequest()
Builds a GET request. |
HttpRequest |
buildHeadRequest()
Builds a HEAD request. |
HttpRequest |
buildPatchRequest()
Builds a PATCH request. |
HttpRequest |
buildPostRequest()
Builds a POST request. |
HttpRequest |
buildPutRequest()
Builds a PUT request. |
HttpRequest |
buildRequest()
Builds a request without specifying the HTTP method. |
HttpParser |
getParser(String contentType)
Returns the HTTP response content parser to use for the given content type or null if none is defined. |
void |
removeIntercepters(Class<?> intercepterClass)
Removes HTTP request execute intercepters of the given class or subclasses. |
static void |
setLowLevelHttpTransport(LowLevelHttpTransport lowLevelHttpTransport)
Sets to the given low level HTTP transport. |
static LowLevelHttpTransport |
useLowLevelHttpTransport()
Returns the low-level HTTP transport to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public HttpHeaders defaultHeaders
public List<HttpExecuteIntercepter> intercepters
List.iterator().
| Constructor Detail |
|---|
public HttpTransport()
| Method Detail |
|---|
public static void setLowLevelHttpTransport(LowLevelHttpTransport lowLevelHttpTransport)
Must be set before the first HTTP transport is constructed or else the
default will be used as specified in useLowLevelHttpTransport().
lowLevelHttpTransport - low level HTTP transport or null to
use the default of java.net transportpublic static LowLevelHttpTransport useLowLevelHttpTransport()
setLowLevelHttpTransport(LowLevelHttpTransport) hasn't been
called, it uses the default of java.net transport.
public void addParser(HttpParser parser)
If there is already a previous parser defined for this new parser (as
defined by getParser(String) then the previous parser will be
removed.
public HttpParser getParser(String contentType)
null if none is defined.
contentType - content type or null for null resultpublic HttpRequest buildRequest()
public HttpRequest buildDeleteRequest()
DELETE request.
public HttpRequest buildGetRequest()
GET request.
public HttpRequest buildPostRequest()
POST request.
public HttpRequest buildPutRequest()
PUT request.
public HttpRequest buildPatchRequest()
PATCH request.
public HttpRequest buildHeadRequest()
HEAD request.
public void removeIntercepters(Class<?> intercepterClass)
intercepterClass - intercepter class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||