public class HttpSsh extends Http
Example Usage:
// create SSH connection parameters
SshParameters sshParams = new SshParameters(sshHostname,sshUsername,sshPassword);
// create new HttpSsh instance
HttpSsh http = new HttpSsh(sshParams);
// build HTTP request
HttpRequest request = new HttpRequest("http://www.myserver.com");
// get HTTP response
try
{
HttpResponse response = http.getResponse(request);
System.out.println(new String(response.getBody()));
}
catch(Exception e)
{
System.out.println(e);
}
| Constructor and Description |
|---|
HttpSsh()
Creates a new HttpSsh instance.
|
HttpSsh(SshParameters sshParameters)
Creates a new HttpSsh instance.
|
addHttpListener, clearProxySettings, getDebugStream, getMaxDataSize, getReadBlockSize, getResponse, getResponse, getResponseToFile, getTimeout, getWriteBlockSize, isDebug, removeHttpListener, setDebug, setDebugStream, setMaxDataSize, setProxyAuthentication, setProxyHost, setProxyType, setReadBlockSize, setTimeout, setWriteBlockSizepublic HttpSsh()
public HttpSsh(SshParameters sshParameters)
sshParameters - Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved