com.google.api.client.http
Class LowLevelHttpTransport

java.lang.Object
  extended by com.google.api.client.http.LowLevelHttpTransport
Direct Known Subclasses:
ApacheHttpTransport, NetHttpTransport

public abstract class LowLevelHttpTransport
extends Object

Low-level HTTP transport.

This allows providing a different implementation of the HTTP transport that is more compatible with the Java environment used.

Since:
1.0
Author:
Yaniv Inbar

Constructor Summary
LowLevelHttpTransport()
           
 
Method Summary
abstract  LowLevelHttpRequest buildDeleteRequest(String url)
          Builds a DELETE request.
abstract  LowLevelHttpRequest buildGetRequest(String url)
          Builds a GET request.
 LowLevelHttpRequest buildHeadRequest(String url)
          Builds a HEAD request.
 LowLevelHttpRequest buildPatchRequest(String url)
          Builds a PATCH request.
abstract  LowLevelHttpRequest buildPostRequest(String url)
          Builds a POST request.
abstract  LowLevelHttpRequest buildPutRequest(String url)
          Builds a PUT request.
 boolean supportsHead()
          Returns whether this HTTP transport implementation supports the HEAD request method.
 boolean supportsPatch()
          Returns whether this HTTP transport implementation supports the PATCH request method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LowLevelHttpTransport

public LowLevelHttpTransport()
Method Detail

supportsHead

public boolean supportsHead()
Returns whether this HTTP transport implementation supports the HEAD request method.

Default implementation returns false.


supportsPatch

public boolean supportsPatch()
Returns whether this HTTP transport implementation supports the PATCH request method.

Default implementation returns false.


buildDeleteRequest

public abstract LowLevelHttpRequest buildDeleteRequest(String url)
                                                throws IOException
Builds a DELETE request.

Parameters:
url - URL
Throws:
IOException - I/O exception

buildGetRequest

public abstract LowLevelHttpRequest buildGetRequest(String url)
                                             throws IOException
Builds a GET request.

Parameters:
url - URL
Throws:
IOException - I/O exception

buildHeadRequest

public LowLevelHttpRequest buildHeadRequest(String url)
                                     throws IOException
Builds a HEAD request. Won't be called if supportsHead() returns false.

Default implementation throws an UnsupportedOperationException.

Parameters:
url - URL
Throws:
IOException - I/O exception

buildPatchRequest

public LowLevelHttpRequest buildPatchRequest(String url)
                                      throws IOException
Builds a PATCH request. Won't be called if supportsPatch() returns false.

Default implementation throws an UnsupportedOperationException.

Parameters:
url - URL
Throws:
IOException - I/O exception

buildPostRequest

public abstract LowLevelHttpRequest buildPostRequest(String url)
                                              throws IOException
Builds a POST request.

Parameters:
url - URL
Throws:
IOException - I/O exception

buildPutRequest

public abstract LowLevelHttpRequest buildPutRequest(String url)
                                             throws IOException
Builds a PUT request.

Parameters:
url - URL
Throws:
IOException - I/O exception


Copyright © 2010 Google. All Rights Reserved.