Package com.sforce.ws

Class ConnectorConfig

java.lang.Object
com.sforce.ws.ConnectorConfig

public class ConnectorConfig extends Object
This class contains a set of configuration properties
Since:
1.0 Dec 19, 2005
Version:
1.0
Author:
http://cheenath.com
  • Field Details

  • Constructor Details

    • ConnectorConfig

      public ConnectorConfig()
  • Method Details

    • setSslContext

      public void setSslContext(SSLContext sslContext)
    • getSslContext

      public SSLContext getSslContext()
    • getTransport

      public Class getTransport()
    • getTransportFactory

      public TransportFactory getTransportFactory()
    • setTransportFactory

      public void setTransportFactory(TransportFactory transportFactory)
    • setTransport

      public void setTransport(Class transport)
    • setNtlmDomain

      public void setNtlmDomain(String domain)
    • getNtlmDomain

      public String getNtlmDomain()
    • isValidateSchema

      public boolean isValidateSchema()
    • setValidateSchema

      public void setValidateSchema(boolean validateSchema)
    • setProxy

      public void setProxy(String host, int port)
    • setProxy

      public void setProxy(Proxy proxy)
    • getProxy

      public Proxy getProxy()
    • getHeaders

      public Map<String,String> getHeaders()
    • getRequestHeader

      public String getRequestHeader(String key)
    • setRequestHeader

      public void setRequestHeader(String key, String value)
    • getProxyUsername

      public String getProxyUsername()
    • setProxyUsername

      public void setProxyUsername(String proxyUsername)
    • getProxyPassword

      public String getProxyPassword()
    • setProxyPassword

      public void setProxyPassword(String proxyPassword)
    • isPrettyPrintXml

      public boolean isPrettyPrintXml()
    • setPrettyPrintXml

      public void setPrettyPrintXml(boolean prettyPrintXml)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getSessionId

      public String getSessionId()
    • setSessionId

      public void setSessionId(String sessionId)
    • getServiceEndpoint

      public String getServiceEndpoint()
    • setServiceEndpoint

      public void setServiceEndpoint(String serviceEndpoint)
    • isCompression

      public boolean isCompression()
    • setCompression

      public void setCompression(boolean compress)
    • getReadTimeout

      public int getReadTimeout()
    • setReadTimeout

      public void setReadTimeout(int readTimeout)
      sets read timeout
      Parameters:
      readTimeout - timeout in ms
    • getConnectionTimeout

      public int getConnectionTimeout()
    • setConnectionTimeout

      public void setConnectionTimeout(int connectionTimeout)
      sets connection timeout
      Parameters:
      connectionTimeout - timout in ms
    • isTraceMessage

      public boolean isTraceMessage()
    • setTraceMessage

      public void setTraceMessage(boolean traceMessage)
      prints request and response xml message on console
      Parameters:
      traceMessage - true to print message
    • getTraceFile

      public String getTraceFile()
    • setTraceFile

      public void setTraceFile(String traceFile) throws FileNotFoundException
      Throws:
      FileNotFoundException
    • getTraceStream

      public PrintStream getTraceStream()
    • getAuthEndpoint

      public String getAuthEndpoint()
    • setAuthEndpoint

      public void setAuthEndpoint(String authEndpoint)
    • setManualLogin

      public void setManualLogin(boolean manualLogin)
    • isManualLogin

      public boolean isManualLogin()
    • setUseChunkedPost

      public void setUseChunkedPost(boolean chunk)
    • useChunkedPost

      public boolean useChunkedPost()
    • verifyPartnerEndpoint

      public void verifyPartnerEndpoint() throws ConnectionException
      Throws:
      ConnectionException
    • verifyEnterpriseEndpoint

      public void verifyEnterpriseEndpoint() throws ConnectionException
      Throws:
      ConnectionException
    • verifyToolingEndpoint

      public void verifyToolingEndpoint() throws ConnectionException
      Throws:
      ConnectionException
    • getMessagerHandlers

      public Iterator<MessageHandler> getMessagerHandlers()
    • hasMessageHandlers

      public boolean hasMessageHandlers()
    • addMessageHandler

      public void addMessageHandler(MessageHandler handler)
    • clearMessageHandlers

      public void clearMessageHandlers()
    • getMaxRequestSize

      public int getMaxRequestSize()
    • setMaxRequestSize

      public void setMaxRequestSize(int maxRequestSize)
    • getMaxResponseSize

      public int getMaxResponseSize()
    • setMaxResponseSize

      public void setMaxResponseSize(int maxResponseSize)
    • getRestEndpoint

      public String getRestEndpoint()
    • setRestEndpoint

      public void setRestEndpoint(String restEndpoint)
    • getSessionRenewer

      public SessionRenewer getSessionRenewer()
    • setSessionRenewer

      public void setSessionRenewer(SessionRenewer sessionRenewer)
    • createTransport

      public Transport createTransport() throws ConnectionException
      Throws:
      ConnectionException
    • createConnection

      public HttpURLConnection createConnection(URL url, HashMap<String,String> httpHeaders) throws IOException
      Throws:
      IOException
    • teeInputStream

      public void teeInputStream(byte[] bytes)
    • teeOutputStream

      public OutputStream teeOutputStream(OutputStream os)
    • createConnection

      public HttpURLConnection createConnection(URL url, HashMap<String,String> httpHeaders, boolean enableCompression) throws IOException
      Throws:
      IOException
    • setCaptureHtmlExceptionResponse

      public void setCaptureHtmlExceptionResponse(boolean captureHtmlResponse)
    • getCaptureHtmlHandler

      public MessageCaptureHandler getCaptureHtmlHandler()