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 12.1.0 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.ConnectListenerNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.Dumpable.DumpAppendableNested 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_PROTOCOL_CONTEXT_KEY, APPLICATION_PROTOCOLS_CONTEXT_KEY, CONNECTION_PROMISE_CONTEXT_KEY, CONTEXT_KEY, HTTP_CLIENT_CONTEXT_KEY, REMOTE_SOCKET_ADDRESS_CONTEXT_KEY, SSL_CONTEXT_FACTORY_CONTEXT_KEYFields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
LEGEND -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(SocketAddress address, Map<String, Object> context) protected org.eclipse.jetty.io.SelectorManagerstatic org.eclipse.jetty.io.ClientConnectorwithSocketAddress(org.newsclub.net.unix.AFSocketAddress addr) Returns a newClientConnectorconfigured to use givenAFSocketAddressfor communication with junixsocket sockets.Methods inherited from class org.eclipse.jetty.io.ClientConnector
accept, acceptFailed, addEventListener, configure, connectFailed, doStart, doStop, getBindAddress, getByteBufferPool, getConnectTimeout, getExecutor, getIdleTimeout, getReceiveBufferSize, getReuseAddress, getScheduler, getSelectorManager, getSelectors, getSendBufferSize, getSslContextFactory, isConnectBlocking, isReusePort, isTCPNoDelay, newConnection, newEndPoint, newSslClientConnectionFactory, newSslContextFactory, removeEventListener, setBindAddress, setByteBufferPool, setConnectBlocking, setConnectTimeout, setExecutor, setIdleTimeout, setReceiveBufferSize, setReuseAddress, setReusePort, setScheduler, setSelectors, setSendBufferSize, setSslContextFactory, setTCPNoDelayMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addManaged, addManaged, contains, destroy, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListenersMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelfMethods 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 newClientConnectorconfigured to use givenAFSocketAddressfor communication with junixsocket sockets.- Parameters:
addr- The socket address.- Returns:
- The client connector.
-
newSelectorManager
protected org.eclipse.jetty.io.SelectorManager newSelectorManager()- Overrides:
newSelectorManagerin classorg.eclipse.jetty.io.ClientConnector
-
connect
- Overrides:
connectin classorg.eclipse.jetty.io.ClientConnector
-