public class RpcConnector
extends org.eclipse.jetty.server.AbstractConnector
RpcConnector is an AbstractConnector that 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 Connection to have a Connector and for them to share an EndPoint.
This AbstractConnector has no intrinsic transport guarantees. Instead, it checks the
scheme of each Request to 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).
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerorg.eclipse.jetty.util.component.LifeCycle.Listenerorg.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener| Constructor and Description |
|---|
RpcConnector(org.eclipse.jetty.server.Server server) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accept(int acceptorID) |
org.eclipse.jetty.server.HttpConfiguration |
getHttpConfiguration() |
Object |
getTransport() |
void |
serviceRequest(AppVersionKey appVersionKey,
com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest,
MutableUpResponse upResponse) |
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, toStringaddBean, 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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopaddBean, addBean, addEventListener, getBean, getBeans, getBeans, getContainedBeans, isManaged, manage, removeBean, removeEventListener, unmanagepublic org.eclipse.jetty.server.HttpConfiguration getHttpConfiguration()
protected void accept(int acceptorID)
throws IOException,
InterruptedException
accept in class org.eclipse.jetty.server.AbstractConnectorUnsupportedOperationExceptionIOExceptionInterruptedExceptionpublic Object getTransport()
public void serviceRequest(AppVersionKey appVersionKey, com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionCopyright © 2022. All rights reserved.