com.google.api.client.http
Class UrlEncodedParser.Builder

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

public static class UrlEncodedParser.Builder
extends Object

Builder for UrlEncodedParser.

Implementation is not thread-safe.

Since:
1.5

Constructor Summary
protected UrlEncodedParser.Builder()
           
 
Method Summary
 UrlEncodedParser build()
          Builds a new instance of UrlEncodedParser.
 String getContentType()
          Returns the content type or null for none.
 boolean getDisableContentLogging()
          Deprecated. (scheduled to be removed in 1.8) Use HttpResponse.getContentLoggingLimit()
 UrlEncodedParser.Builder setContentType(String contentType)
          Sets the content type.
 UrlEncodedParser.Builder setDisableContentLogging(boolean disableContentLogging)
          Deprecated. (scheduled to be removed in 1.8) Use HttpResponse.setContentLoggingLimit(int)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlEncodedParser.Builder

protected UrlEncodedParser.Builder()
Method Detail

build

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


getContentType

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


setContentType

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

Default value is UrlEncodedParser.CONTENT_TYPE.


getDisableContentLogging

@Deprecated
public final boolean getDisableContentLogging()
Deprecated. (scheduled to be removed in 1.8) Use HttpResponse.getContentLoggingLimit()

Returns whether to disable response content logging (unless Level.ALL is loggable which forces all logging).

Useful for example if content has sensitive data such as an authentication token. Defaults to false.


setDisableContentLogging

@Deprecated
public UrlEncodedParser.Builder setDisableContentLogging(boolean disableContentLogging)
Deprecated. (scheduled to be removed in 1.8) Use HttpResponse.setContentLoggingLimit(int)

Sets whether to disable response content logging (unless Level.ALL is loggable which forces all logging).

Useful for example if content has sensitive data such as an authentication token. Defaults to false.



Copyright © 2011-2012 Google. All Rights Reserved.