|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.http.Http
com.jscape.inet.httpssh.HttpSsh
public class HttpSsh
Implements the basic functionality of a HTTP client tunnelling data through a secure SSH connection.
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 Summary | |
---|---|
HttpSsh()
Creates a new HttpSsh instance. |
|
HttpSsh(SshParameters sshParameters)
Creates a new HttpSsh instance. |
Method Summary |
---|
Methods inherited from class com.jscape.inet.http.Http |
---|
addHttpListener, clearProxySettings, getDebugStream, getReadBlockSize, getResponse, getResponse, getResponseToFile, getTimeout, getWriteBlockSize, isDebug, removeHttpListener, setDebug, setDebugStream, setProxyAuthentication, setProxyHost, setProxyType, setReadBlockSize, setTimeout, setWriteBlockSize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpSsh()
public HttpSsh(SshParameters sshParameters)
sshParameters
-
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |