com.google.api.client.http.protobuf
Class ProtoHttpParser.Builder

java.lang.Object
  extended by com.google.api.client.http.protobuf.ProtoHttpParser.Builder
Enclosing class:
ProtoHttpParser

public static class ProtoHttpParser.Builder
extends Object

Builder for ProtoHttpParser.

Implementation is not thread-safe.


Constructor Summary
protected ProtoHttpParser.Builder()
           
 
Method Summary
 ProtoHttpParser build()
          Builds a new instance of ProtoHttpParser.
 String getContentType()
          Returns the content type or null for none.
 ProtoHttpParser.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

ProtoHttpParser.Builder

protected ProtoHttpParser.Builder()
Method Detail

build

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


getContentType

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


setContentType

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

Default value is ProtocolBuffers.CONTENT_TYPE.



Copyright © 2011 Google. All Rights Reserved.