public class SdcClientHelper extends HttpClientHelper
Request request = new Request(Method.GET, "http://restlet.org"); request.setProtocol(Protocol.valueOf("SDC")); request.setProxyChallengeResponse(new ChallengeResponse(ChallengeScheme .valueOf("SDC"), "myUser@example.com", "myPassword")); Response response = sdcClient.handle(request); response.getEntity().write(System.out);Here is the list of additional parameters that are supported. They should be set in the Server's context before it is started:
Parameter name | Value type | Default value | Description |
---|---|---|---|
serverPort | int | 4433 | The port number of the SDC tunnels server. |
enabledCipherSuites | String | TLS_RSA_WITH_AES_128_CBC_SHA | Whitespace-separated list of enabled cipher suites and/or can be specified multiple times. |
sslContextFactory | String | org.restlet.engine.ssl.DefaultSslContextFactory | Let you specify a SslContextFactory qualified class name as a parameter, or an instance as an attribute
for a more complete and flexible SSL context setting. |
DefaultSslContextFactory
class.Constructor and Description |
---|
SdcClientHelper(Client client)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ClientCall |
create(Request request) |
Map<String,org.restlet.ext.sdc.internal.SdcServerConnection> |
getConnections()
Returns the map of SDC tunnel connections.
|
String[] |
getEnabledCipherSuites()
Returns the list of enabled cipher suites.
|
CountDownLatch |
getLatch()
Returns the latch that can be used to block until the connector is ready
to process requests.
|
int |
getServerPort()
Returns the port number of the SDC tunnels server.
|
ExecutorService |
getWorkerService()
Returns the connection worker service.
|
void |
start() |
void |
stop() |
getAdapter, getSocketConnectTimeoutMs, handle, setAdapter
getConnectorService, getContext, getProtocols, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public SdcClientHelper(Client client)
client
- The parent client.public ClientCall create(Request request)
create
in class HttpClientHelper
public Map<String,org.restlet.ext.sdc.internal.SdcServerConnection> getConnections()
public String[] getEnabledCipherSuites()
public CountDownLatch getLatch()
public int getServerPort()
public ExecutorService getWorkerService()
public void start() throws Exception
start
in class ConnectorHelper<Client>
Exception
public void stop() throws Exception
stop
in class ConnectorHelper<Client>
Exception
Copyright © 2005-2017 Restlet.