Class RpcConnector
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.server.AbstractConnector
-
- com.google.apphosting.runtime.jetty94.RpcConnector
-
- All Implemented Interfaces:
org.eclipse.jetty.server.Connector,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.Graceful,org.eclipse.jetty.util.component.LifeCycle
public class RpcConnector extends org.eclipse.jetty.server.AbstractConnectorRpcConnectoris anAbstractConnectorthat essentially does nothing. In particular, it does not open a local socket and does not start any background threads for accepting new connections.It exists primarily to satisfy various low-level Jetty components that expect each
Connectionto have aConnectorand for them to share anEndPoint.This
AbstractConnectorhas no intrinsic transport guarantees. Instead, it checks the scheme of eachRequestto determine whether HTTPS was used, and if so, indicates that both integrity and confidentiality are guaranteed.This class is loosely based on
org.mortbay.jetty.LocalConnector, but we don't extend it because it still does some things that we don't want (e.g. accepting connections).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
-
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
-
-
Constructor Summary
Constructors Constructor Description RpcConnector(org.eclipse.jetty.server.Server server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept(int acceptorID)org.eclipse.jetty.server.HttpConfigurationgetHttpConfiguration()ObjectgetTransport()voidserviceRequest(AppVersionKey appVersionKey, com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse)-
Methods inherited from class org.eclipse.jetty.server.AbstractConnector
addConnectionFactory, addFirstConnectionFactory, addIfAbsentConnectionFactory, clearConnectionFactories, doStart, doStop, getAcceptorPriorityDelta, getAcceptors, getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getDefaultProtocol, getExecutor, getHttpChannelListeners, getIdleTimeout, getName, getProtocols, getScheduler, getServer, handleAcceptFailure, interruptAcceptors, isAccepting, isShutdown, join, join, onEndPointClosed, onEndPointOpened, removeConnectionFactory, setAccepting, setAcceptorPriorityDelta, setConnectionFactories, setDefaultProtocol, setIdleTimeout, setName, shutdown, toString
-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
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
addBean, addBean, addEventListener, getBean, getBeans, getBeans, getContainedBeans, isManaged, manage, removeBean, removeEventListener, unmanage
-
-
-
-
Method Detail
-
getHttpConfiguration
public org.eclipse.jetty.server.HttpConfiguration getHttpConfiguration()
-
accept
protected void accept(int acceptorID) throws IOException, InterruptedException- Specified by:
acceptin classorg.eclipse.jetty.server.AbstractConnector- Throws:
UnsupportedOperationExceptionIOExceptionInterruptedException
-
getTransport
public Object getTransport()
-
serviceRequest
public void serviceRequest(AppVersionKey appVersionKey, com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletExceptionIOException
-
-