com.cometway.net
Class SecureHTTPLoader

java.lang.Object
  extended by com.cometway.net.HTTPLoader
      extended by com.cometway.net.SecureHTTPLoader

public class SecureHTTPLoader
extends HTTPLoader

Implements a secure version of HTTPSLoader capable of accessing Web Services that use SSL.


Field Summary
 java.lang.String cert1_file
          This is the path and filename of the non-passphrased, X509 certificate associated with the private key.
 java.lang.String key_file
          This is the path and filename of the non-passphrased, PKCS8 encoded private key in PEM format.
protected  HTTPResponse response
           
 
Fields inherited from class com.cometway.net.HTTPLoader
acceptString, ALL_FRAMES, allowForeignCookies, autoRedirect, contentTypeString, cookieList, debug, debugStr, DEFAULT_DEBUG_STR, DEFAULT_ERROR_STR, DEFAULT_PRINT_STR, DEFAULT_RECURSION_LIMIT, DEFAULT_TIMEOUT, DEFAULT_USER_AGENT_STR, errorStr, exceptionHandler, httpsProxyServer, httpsProxyServerPort, loadFrames, META_HTTP_REGEXP, printStr, proxyServer, proxyServerPort, recursionCount, recursionLimit, referer, request, requestDataLength, requestHost, requestMillis, requestPath, requestPort, requestProtocol, requestReader, requestSocket, requestTimeout, requestURL, requestWriter, useAccept, useCarraigeReturnsInRequest, useContentType, useHost, userAgent, useReferer, useUserAgent, verbose
 
Constructor Summary
SecureHTTPLoader()
           
 
Method Summary
static void main(java.lang.String[] args)
          This class can be called from the command line to retrieve a page.
protected  void openSocket()
          Opens a socket connection.
protected  byte[] readBinaryFile(java.io.File file)
           
 
Methods inherited from class com.cometway.net.HTTPLoader
addCookie, addCookie, closeConnection, debug, error, exception, getCookieList, getCookieString, getDefaultPort, getHeaders, getHTTPParamString, getHTTPParamString, getRedirectLocation, getRequestURL, getResponseHeader, getResultCode, getURL, getURL, getURL, getURL, getURL, getURL, getURL, loadFrames, openConnection, postURL, postURL, postURL, postURL, postURL, postURL, postURL, postURL, postURL, postURL, prepareRequest, println, putURL, putURL, putURL, removeAuthentication, requestURL, resetCookieList, sendRequest, setAllowForeignCookies, setAutoRedirect, setCookieList, setCookiesSupported, setDebug, setExceptionHandler, setHTTPKey, setHTTPSProxyServer, setLoadFrames, setProxyServer, setRecursionLimit, setRequestTimeout, setUserAgent, setVerbose, shortGetURL, shortGetURL, useBasicAuthentication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key_file

public java.lang.String key_file
This is the path and filename of the non-passphrased, PKCS8 encoded private key in PEM format. If no path is given the current directory is used.


cert1_file

public java.lang.String cert1_file
This is the path and filename of the non-passphrased, X509 certificate associated with the private key. The format is PEM. If no path is given, the current directory is used.


response

protected HTTPResponse response
Constructor Detail

SecureHTTPLoader

public SecureHTTPLoader()
Method Detail

readBinaryFile

protected byte[] readBinaryFile(java.io.File file)
Overrides:
readBinaryFile in class HTTPLoader

openSocket

protected void openSocket()
                   throws java.lang.Exception
Opens a socket connection.

Overrides:
openSocket in class HTTPLoader
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
This class can be called from the command line to retrieve a page.