com.paypal.base
Class HttpConfiguration

java.lang.Object
  extended by com.paypal.base.HttpConfiguration

public class HttpConfiguration
extends Object

Class contains http specific configuration parameters


Constructor Summary
HttpConfiguration()
           
 
Method Summary
 int getConnectionTimeout()
           
 String getContentType()
          Deprecated. Set/Get Content-Type HTTP Header in BaseAPIContext HTTPHeaders parameter
 String getEndPointUrl()
           
 String getHttpMethod()
           
 String getIpAddress()
           
 int getMaxHttpConnection()
           
 int getMaxRetry()
           
 String getProxyHost()
           
 String getProxyPassword()
           
 int getProxyPort()
           
 String getProxyUserName()
           
 int getReadTimeout()
           
 int getRetryDelay()
           
 boolean isGoogleAppEngine()
           
 boolean isProxySet()
           
 void setConnectionTimeout(int connectionTimeout)
          Sets the connectionTimeout
 void setContentType(String contentType)
          Deprecated. Set/Get Content-Type HTTP Header in BaseAPIContext HTTPHeaders parameter
 void setEndPointUrl(String endPointUrl)
          Sets the endPointUrl
 void setGoogleAppEngine(boolean googleAppEngine)
          Sets the googleAppEngine
 void setHttpMethod(String httpMethod)
           
 void setIpAddress(String ipAddress)
           
 void setMaxHttpConnection(int maxHttpConnection)
          Sets the maxHttpConnection
 void setMaxRetry(int maxRetry)
          Sets the maxRetry
 void setProxyHost(String proxyHost)
          Sets the proxyHost
 void setProxyPassword(String proxyPassword)
          Sets the proxyPassword
 void setProxyPort(int proxyPort)
          Sets the proxyPort
 void setProxySet(boolean proxySet)
          Sets the proxySet
 void setProxyUserName(String proxyUserName)
          Sets the proxyUserName
 void setReadTimeout(int readTimeout)
          Sets the readTimeout
 void setRetryDelay(int retryDelay)
          Sets the retryDelay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpConfiguration

public HttpConfiguration()
Method Detail

getIpAddress

public String getIpAddress()

setIpAddress

public void setIpAddress(String ipAddress)

getProxyUserName

public String getProxyUserName()
Returns:
the proxyUserName

setProxyUserName

public void setProxyUserName(String proxyUserName)
Sets the proxyUserName

Parameters:
proxyUserName -

getProxyPassword

public String getProxyPassword()
Returns:
the proxyPassword

setProxyPassword

public void setProxyPassword(String proxyPassword)
Sets the proxyPassword

Parameters:
proxyPassword -

getMaxHttpConnection

public int getMaxHttpConnection()
Returns:
the maxHttpConnection

setMaxHttpConnection

public void setMaxHttpConnection(int maxHttpConnection)
Sets the maxHttpConnection

Parameters:
maxHttpConnection -

getRetryDelay

public int getRetryDelay()
Returns:
the retryDelay

setRetryDelay

public void setRetryDelay(int retryDelay)
Sets the retryDelay

Parameters:
retryDelay -

getEndPointUrl

public String getEndPointUrl()
Returns:
the endPointUrl

setEndPointUrl

public void setEndPointUrl(String endPointUrl)
Sets the endPointUrl

Parameters:
endPointUrl -

getMaxRetry

public int getMaxRetry()
Returns:
the maxRetry

setMaxRetry

public void setMaxRetry(int maxRetry)
Sets the maxRetry

Parameters:
maxRetry -

getProxyHost

public String getProxyHost()
Returns:
the proxyHost

setProxyHost

public void setProxyHost(String proxyHost)
Sets the proxyHost

Parameters:
proxyHost -

getProxyPort

public int getProxyPort()
Returns:
the proxyPort

setProxyPort

public void setProxyPort(int proxyPort)
Sets the proxyPort

Parameters:
proxyPort -

getReadTimeout

public int getReadTimeout()
Returns:
the readTimeout

setReadTimeout

public void setReadTimeout(int readTimeout)
Sets the readTimeout

Parameters:
readTimeout -

getConnectionTimeout

public int getConnectionTimeout()
Returns:
the connectionTimeout

setConnectionTimeout

public void setConnectionTimeout(int connectionTimeout)
Sets the connectionTimeout

Parameters:
connectionTimeout -

isProxySet

public boolean isProxySet()
Returns:
the proxySet

setProxySet

public void setProxySet(boolean proxySet)
Sets the proxySet

Parameters:
proxySet -

isGoogleAppEngine

public boolean isGoogleAppEngine()
Returns:
the googleAppEngine

setGoogleAppEngine

public void setGoogleAppEngine(boolean googleAppEngine)
Sets the googleAppEngine

Parameters:
googleAppEngine -

getHttpMethod

public String getHttpMethod()
Returns:
the httpMethod

setHttpMethod

public void setHttpMethod(String httpMethod)
Parameters:
httpMethod - the httpMethod to set

getContentType

public String getContentType()
Deprecated. Set/Get Content-Type HTTP Header in BaseAPIContext HTTPHeaders parameter

Returns:
the contentType

setContentType

public void setContentType(String contentType)
Deprecated. Set/Get Content-Type HTTP Header in BaseAPIContext HTTPHeaders parameter

Parameters:
contentType - the contentType to set


Copyright © 2015. All Rights Reserved.