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.ConfiguratorNested 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.DumpableContainerNested 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_KEYFields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, 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, setTCPNoDelayMethods 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, 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 java.lang.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
-