Package org.newsclub.net.unix.jetty
Class AFSocketClientConnector
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.io.ClientConnector
org.newsclub.net.unix.jetty.AFSocketClientConnector
- All Implemented Interfaces:
org.eclipse.jetty.util.component.Container
,org.eclipse.jetty.util.component.Destroyable
,org.eclipse.jetty.util.component.Dumpable
,org.eclipse.jetty.util.component.Dumpable.DumpableContainer
,org.eclipse.jetty.util.component.LifeCycle
public final class AFSocketClientConnector
extends org.eclipse.jetty.io.ClientConnector
A
Connector
implementation for junixsocket server socket channels (Unix domains etc.)
Based upon jetty's ClientConnector.
This implementation should work with jetty version 10.0.8 or newer.- Author:
- Christian Kohlschütter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.io.ClientConnector
org.eclipse.jetty.io.ClientConnector.ClientSelectorManager, org.eclipse.jetty.io.ClientConnector.Configurator
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
-
Field Summary
Fields inherited from class org.eclipse.jetty.io.ClientConnector
APPLICATION_PROTOCOLS_CONTEXT_KEY, CLIENT_CONNECTION_FACTORY_CONTEXT_KEY, CLIENT_CONNECTOR_CONTEXT_KEY, CONNECTION_PROMISE_CONTEXT_KEY, REMOTE_SOCKET_ADDRESS_CONTEXT_KEY
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPING
Fields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.jetty.io.SelectorManager
static org.eclipse.jetty.io.ClientConnector
withSocketAddress
(org.newsclub.net.unix.AFSocketAddress addr) Returns a newClientConnector
configured to use givenAFSocketAddress
for communication with junixsocket sockets.Methods inherited from class org.eclipse.jetty.io.ClientConnector
accept, acceptFailed, configure, connect, connectFailed, doStart, doStop, forUnixDomain, getBindAddress, getByteBufferPool, getConnectTimeout, getExecutor, getIdleTimeout, getReceiveBufferSize, getReuseAddress, getScheduler, getSelectorManager, getSelectors, getSendBufferSize, getSslContextFactory, isConnectBlocking, isIntrinsicallySecure, isReusePort, isTCPNoDelay, newConnection, newEndPoint, newSslContextFactory, newTransport, setBindAddress, setByteBufferPool, setConnectBlocking, setConnectTimeout, setExecutor, setIdleTimeout, setReceiveBufferSize, setReuseAddress, setReusePort, setScheduler, setSelectors, setSendBufferSize, setSslContextFactory, setTCPNoDelay
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelf
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Method Details
-
withSocketAddress
public static org.eclipse.jetty.io.ClientConnector withSocketAddress(org.newsclub.net.unix.AFSocketAddress addr) Returns a newClientConnector
configured to use givenAFSocketAddress
for communication with junixsocket sockets.- Parameters:
addr
- The socket address.- Returns:
- The client connector.
-
newSelectorManager
protected org.eclipse.jetty.io.SelectorManager newSelectorManager()- Overrides:
newSelectorManager
in classorg.eclipse.jetty.io.ClientConnector
-