com.google.api.client.testing.http
Class MockHttpTransport.Builder

java.lang.Object
  extended by com.google.api.client.testing.http.MockHttpTransport.Builder
Enclosing class:
MockHttpTransport

public static class MockHttpTransport.Builder
extends Object

Builder for MockHttpTransport.

Implementation is not thread-safe.

Since:
1.5

Constructor Summary
protected MockHttpTransport.Builder()
           
 
Method Summary
 MockHttpTransport build()
          Builds a new instance of MockHttpTransport.
 Set<HttpMethod> getSupportedOptionalMethods()
          Returns the set of supported optional methods.
 MockHttpTransport.Builder setSupportedOptionalMethods(Set<HttpMethod> supportedOptionalMethods)
          Sets the set of supported optional methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockHttpTransport.Builder

protected MockHttpTransport.Builder()
Method Detail

build

public MockHttpTransport build()
Builds a new instance of MockHttpTransport.


getSupportedOptionalMethods

public final Set<HttpMethod> getSupportedOptionalMethods()
Returns the set of supported optional methods.

Default value is MockHttpTransport.DEFAULT_SUPPORTED_OPTIONAL_METHODS.


setSupportedOptionalMethods

public MockHttpTransport.Builder setSupportedOptionalMethods(Set<HttpMethod> supportedOptionalMethods)
Sets the set of supported optional methods.

Default value is MockHttpTransport.DEFAULT_SUPPORTED_OPTIONAL_METHODS.



Copyright © 2011 Google. All Rights Reserved.