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.ConnectListener

    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, org.eclipse.jetty.util.component.Dumpable.DumpAppendable

    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_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_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

    LEGEND
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    connect(SocketAddress address, Map<String,Object> context)
     
    protected org.eclipse.jetty.io.SelectorManager
     
    static org.eclipse.jetty.io.ClientConnector
    withSocketAddress(org.newsclub.net.unix.AFSocketAddress addr)
    Returns a new ClientConnector configured to use given AFSocketAddress for 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, setTCPNoDelay

    Methods 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, 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 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 new ClientConnector configured to use given AFSocketAddress 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 class org.eclipse.jetty.io.ClientConnector
    • connect

      public void connect(SocketAddress address, Map<String,Object> context)
      Overrides:
      connect in class org.eclipse.jetty.io.ClientConnector