com.google.api.client.http.json
Class JsonHttpParser.Builder

java.lang.Object
  extended by com.google.api.client.http.json.JsonHttpParser.Builder
Enclosing class:
JsonHttpParser

public static class JsonHttpParser.Builder
extends Object

Builder for JsonHttpParser.

Implementation is not thread-safe.

Since:
1.5

Constructor Summary
protected JsonHttpParser.Builder(JsonFactory jsonFactory)
           
 
Method Summary
 JsonHttpParser build()
          Builds a new instance of JsonHttpParser.
 String getContentType()
          Returns the content type or null for none.
 JsonFactory getJsonFactory()
          Returns the JSON factory.
 JsonHttpParser.Builder setContentType(String contentType)
          Sets the content type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonHttpParser.Builder

protected JsonHttpParser.Builder(JsonFactory jsonFactory)
Parameters:
jsonFactory - JSON factory
Method Detail

build

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


getContentType

public final String getContentType()
Returns the content type or null for none.


setContentType

public JsonHttpParser.Builder setContentType(String contentType)
Sets the content type.

Default value is Json.CONTENT_TYPE.


getJsonFactory

public final JsonFactory getJsonFactory()
Returns the JSON factory.



Copyright © 2011-2012 Google. All Rights Reserved.