public class HttpClientConnector extends AbstractClientProxyConnector
proxyAddress, proxyPassword, proxyUser, remoteAddressTIMEOUT_PROPERTY| Constructor and Description |
|---|
HttpClientConnector(InetSocketAddress proxyAddress,
InetSocketAddress remoteAddress)
Creates a new
HttpClientConnector. |
HttpClientConnector(InetSocketAddress proxyAddress,
InetSocketAddress remoteAddress,
String proxyUser,
char[] proxyPassword)
Creates a new
HttpClientConnector. |
| Modifier and Type | Method and Description |
|---|---|
void |
messageReceived(org.apache.sshd.common.io.IoSession session,
org.apache.sshd.common.util.Readable buffer)
Handle a received message.
|
void |
sendClientProxyMetadata(org.apache.sshd.client.session.ClientSession sshSession) |
adjustTimeout, clearPassword, getTimeout, init, runWhenDone, setDonepublic HttpClientConnector(@NonNull InetSocketAddress proxyAddress, @NonNull InetSocketAddress remoteAddress)
HttpClientConnector. The connector supports
anonymous proxy connections as well as Basic and Negotiate
authentication.proxyAddress - of the proxy server we're connecting toremoteAddress - of the target server to connect topublic HttpClientConnector(@NonNull InetSocketAddress proxyAddress, @NonNull InetSocketAddress remoteAddress, String proxyUser, char[] proxyPassword)
HttpClientConnector. The connector supports
anonymous proxy connections as well as Basic and Negotiate
authentication. If a user name and password are given, the connector
tries pre-emptive Basic authentication.proxyAddress - of the proxy server we're connecting toremoteAddress - of the target server to connect toproxyUser - to authenticate at the proxy withproxyPassword - to authenticate at the proxy withpublic void sendClientProxyMetadata(org.apache.sshd.client.session.ClientSession sshSession)
throws Exception
Exceptionpublic void messageReceived(org.apache.sshd.common.io.IoSession session,
org.apache.sshd.common.util.Readable buffer)
throws Exception
StatefulProxyConnectorsession - to use for writing databuffer - received dataException - if data cannot be read, or the connection attempt failsCopyright © 2020 Eclipse JGit Project. All rights reserved.