com.pushtotest.tool.protocolhandler
Class HTTPSProtocol

java.lang.Object
  extended by com.pushtotest.tool.protocolhandler.ProtocolWrapper
      extended by com.pushtotest.tool.protocolhandler.HTTPProtocol
          extended by com.pushtotest.tool.protocolhandler.HTTPSProtocol
All Implemented Interfaces:
Protocol, java.lang.Runnable

Deprecated. Just use HTTPProtocol, it handles both now.

public class HTTPSProtocol
extends HTTPProtocol

This is the implementation of the HTTPS Protocol handler. It is essentially the exact same as the HTTP one (and will reuse as much of the code as possible from it) but it handles setting up the SSL connection before the HTTP calls are made.


Field Summary
 
Fields inherited from class com.pushtotest.tool.protocolhandler.HTTPProtocol
cookieJar, GET, POST
 
Fields inherited from class com.pushtotest.tool.protocolhandler.ProtocolWrapper
body, errno, header, host, name, pass, path, port, proxyHost, proxyPass, proxyPort, proxyUser, query, response, running, scheme, timeout, type, url
 
Fields inherited from interface com.pushtotest.tool.protocolhandler.Protocol
IOERROR, NOERROR, NOTREADY, OTHER, TIMEOUT
 
Constructor Summary
HTTPSProtocol()
          Deprecated.  
 
Method Summary
 java.lang.String id()
          Deprecated. Returns an id for this protocol.
protected  boolean supports(java.lang.String id)
          Deprecated. Tests to see if this protocol will support a specific type.
 
Methods inherited from class com.pushtotest.tool.protocolhandler.HTTPProtocol
clearURLlist, connect, connect, connect, getCookies, getHeaderField, getHeaderFields, getURLlist, send, setDisconnect, setHostnameVerifier
 
Methods inherited from class com.pushtotest.tool.protocolhandler.ProtocolWrapper
getBody, getErrno, getHost, getPassword, getResponse, getTimeout, getUrl, getUrl, getURL, getUsername, isRunning, parseUrl, run, setBody, setErrno, setHeader, setHost, setPassword, setPath, setPort, setProxyHost, setProxyPass, setProxyPort, setProxyUser, setQueryString, setScheme, setTimeout, setType, setUrl, setUsername, supportsBody, supportsHeader, supportsResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPSProtocol

public HTTPSProtocol()
Deprecated. 
Method Detail

id

public java.lang.String id()
Deprecated. 
Returns an id for this protocol. The id is a string that will be used to uniquily identify the protocol. For example :// would be appropriate (without the "://").

Specified by:
id in interface Protocol
Overrides:
id in class HTTPProtocol
Returns:
The id for this Protocol.

supports

protected boolean supports(java.lang.String id)
Deprecated. 
Tests to see if this protocol will support a specific type. Can be used to determine if a given Header, Body, etc can be passed into this Protocol. This uses the inherited supportsBody, supportsHeader, etc since they should all use either 'http' or 'https'.

Overrides:
supports in class HTTPProtocol
Parameters:
id - The string id to test.