Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.base;

Class contains http specific configuration parameters
  
  public class HttpConfiguration {

Maximum retries on failure
 
 	private int maxRetry;

Use PROXY configuration
 
 	private boolean proxySet;

PROXY host
 
 	private String proxyHost;

PROXY port
 
 	private int proxyPort;

PROXY username
 
 	private String proxyUserName;

PROXY password
 
 	private String proxyPassword;

Connection read timeout
 
 	private int readTimeout;

Connection timeout
 
 	private int connectionTimeout;

Maximum HTTP connections
 
 	private int maxHttpConnection;

End point URL
 
 	private String endPointUrl;

Google App Engine (Use GoogleAppEngineHttpConnection)
 
 	private boolean googleAppEngine;

Delay used for retry mechanism
 
 	private int retryDelay;

IP Address
 
 	private String ipAddress;

HTTP method, defaulted to HTTP POST
 
 	private String httpMethod;

HTTP Content Type value, defaulted to 'application/x-www-form-urlencoded'

Deprecated:
Set Content-Type in HTTP Headers property of BaseAPIContext
 
 	private String contentType;
 
 	public String getIpAddress() {
 		return ;
 	}
 
 	public void setIpAddress(String ipAddress) {
 		this. = ipAddress;
 	}
 
 	public HttpConfiguration() {
 
 		this. = 2;
 
 		this. = false;
 
		this. = null;
		this. = -1;
		this. = null;
		this. = null;
		this. = 0;
		this. = 10;
		this. = null;
		this. = 1000;
		this. = "127.0.0.1";
	}

Returns:
the proxyUserName
	}

Sets the proxyUserName

Parameters:
proxyUserName
	public void setProxyUserName(String proxyUserName) {
		this. = proxyUserName;
	}

Returns:
the proxyPassword
	}

Sets the proxyPassword

Parameters:
proxyPassword
	public void setProxyPassword(String proxyPassword) {
		this. = proxyPassword;
	}

Returns:
the maxHttpConnection
	public int getMaxHttpConnection() {
	}

Sets the maxHttpConnection

Parameters:
maxHttpConnection
	public void setMaxHttpConnection(int maxHttpConnection) {
		this. = maxHttpConnection;
	}

Returns:
the retryDelay
	public int getRetryDelay() {
		return ;
	}

Sets the retryDelay

Parameters:
retryDelay
	public void setRetryDelay(int retryDelay) {
		this. = retryDelay;
	}

Returns:
the endPointUrl
	public String getEndPointUrl() {
		return ;
	}

Sets the endPointUrl

Parameters:
endPointUrl
	public void setEndPointUrl(String endPointUrl) {
		this. = endPointUrl;
	}

Returns:
the maxRetry
	public int getMaxRetry() {
		return ;
	}

Sets the maxRetry

Parameters:
maxRetry
	public void setMaxRetry(int maxRetry) {
		this. = maxRetry;
	}

Returns:
the proxyHost
	public String getProxyHost() {
		return ;
	}

Sets the proxyHost

Parameters:
proxyHost
	public void setProxyHost(String proxyHost) {
		this. = proxyHost;
	}

Returns:
the proxyPort
	public int getProxyPort() {
		return ;
	}

Sets the proxyPort

Parameters:
proxyPort
	public void setProxyPort(int proxyPort) {
		this. = proxyPort;
	}

Returns:
the readTimeout
	public int getReadTimeout() {
		return ;
	}

Sets the readTimeout

Parameters:
readTimeout
	public void setReadTimeout(int readTimeout) {
		this. = readTimeout;
	}

Returns:
the connectionTimeout
	public int getConnectionTimeout() {
	}

Sets the connectionTimeout

Parameters:
connectionTimeout
	public void setConnectionTimeout(int connectionTimeout) {
		this. = connectionTimeout;
	}

Returns:
the proxySet
	public boolean isProxySet() {
		return ;
	}

Sets the proxySet

Parameters:
proxySet
	public void setProxySet(boolean proxySet) {
		this. = proxySet;
	}

Returns:
the googleAppEngine
	public boolean isGoogleAppEngine() {
	}

Sets the googleAppEngine

Parameters:
googleAppEngine
	public void setGoogleAppEngine(boolean googleAppEngine) {
		this. = googleAppEngine;
	}

Returns:
the httpMethod
	public String getHttpMethod() {
		return ;
	}

Parameters:
httpMethod the httpMethod to set
	public void setHttpMethod(String httpMethod) {
		this. = httpMethod;
	}

Deprecated:
Set/Get Content-Type HTTP Header in BaseAPIContext HTTPHeaders parameter
Returns:
the contentType
	public String getContentType() {
		return ;
	}

Deprecated:
Set/Get Content-Type HTTP Header in BaseAPIContext HTTPHeaders parameter
Parameters:
contentType the contentType to set
	public void setContentType(String contentType) {
		this. = contentType;
	}
New to GrepCode? Check out our FAQ X