public class WebSocketClient extends ContainerLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
WebSocketClient() |
WebSocketClient(SslContextFactory sslContextFactory) |
addBean, addBean, addBean, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, setBeans, setStopTimeout, start, unmanage, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic WebSocketClient()
public WebSocketClient(SslContextFactory sslContextFactory)
public Future<org.eclipse.jetty.websocket.api.Session> connect(Object websocket, URI toUri) throws IOException
IOExceptionpublic Future<org.eclipse.jetty.websocket.api.Session> connect(Object websocket, URI toUri, ClientUpgradeRequest request) throws IOException
IOExceptionprotected void doStart()
throws Exception
doStart in class ContainerLifeCycleExceptionprotected void doStop()
throws Exception
doStop in class ContainerLifeCycleExceptionpublic SocketAddress getBindAddress()
public ByteBufferPool getBufferPool()
public ConnectionManager getConnectionManager()
public long getConnectTimeout()
public CookieStore getCookieStore()
public Executor getExecutor()
public org.eclipse.jetty.websocket.api.extensions.ExtensionFactory getExtensionFactory()
public Masker getMasker()
public long getMaxIdleTimeout()
public org.eclipse.jetty.websocket.api.WebSocketPolicy getPolicy()
public Scheduler getScheduler()
public SslContextFactory getSslContextFactory()
SslContextFactory that manages TLS encryptionWebSocketClient(SslContextFactory)public List<org.eclipse.jetty.websocket.api.extensions.Extension> initExtensions(List<org.eclipse.jetty.websocket.api.extensions.ExtensionConfig> requested)
protected ConnectionManager newConnectionManager()
public void setBindAdddress(SocketAddress bindAddress)
public void setBufferPool(ByteBufferPool bufferPool)
public void setConnectTimeout(long timeoutMilliseconds)
timeoutMilliseconds - the timeout in millisecondspublic void setCookieStore(CookieStore cookieStore)
public void setExecutor(Executor executor)
public void setMasker(Masker masker)
public void setMaxIdleTimeout(long milliseconds)
Existing connections will not have their max idle timeout adjusted.
milliseconds - the timeout in millisecondsCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.