|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.ConnectorHelper<Client>
org.restlet.engine.ClientHelper
org.restlet.engine.adapter.HttpClientHelper
org.restlet.ext.sdc.SdcClientHelper
public class SdcClientHelper
SDC tunnel connector. This is a client connector from the Restlet application
developer point of view, but internally it launches an SDC tunnel server to
allow SDC agents located inside intranet to establish SDC tunnels.
Note that currently all SDC tunnel connections are accepted and are matched
with SDC client requests based on the SDC user name, domain and password.
Here is a usage example:
Request request = new Request(Method.GET, "http://www.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.ext.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 Summary | |
---|---|
SdcClientHelper(Client client)
Constructor. |
Method Summary | |
---|---|
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()
|
Methods inherited from class org.restlet.engine.adapter.HttpClientHelper |
---|
getAdapter, handle, setAdapter |
Methods inherited from class org.restlet.engine.ClientHelper |
---|
getSocketConnectTimeoutMs |
Methods inherited from class org.restlet.engine.ConnectorHelper |
---|
getConnectorService, getContext, getProtocols, update |
Methods inherited from class org.restlet.engine.RestletHelper |
---|
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SdcClientHelper(Client client)
client
- The parent client.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |