org.eclipse.jetty.nested
类 NestedConnector

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.util.component.AggregateLifeCycle
          继承者 org.eclipse.jetty.server.AbstractConnector
              继承者 org.eclipse.jetty.nested.NestedConnector
所有已实现的接口:
HttpBuffers, Connector, Destroyable, Dumpable, LifeCycle

public class NestedConnector
extends AbstractConnector

Nested Jetty Connector

This Jetty Connector allows a jetty instance to be nested inside another servlet container. Requests received by the outer servlet container should be passed to jetty using the service(ServletRequest, ServletResponse) method of this connector.


嵌套类摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.server.AbstractConnector 继承的字段
_buffers, _lowResourceMaxIdleTime, _maxIdleTime, _soLingerTime
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
NestedConnector()
           
 
方法摘要
protected  void accept(int acceptorID)
           
 void close()
           
 Object getConnection()
           
 int getLocalPort()
           
 void open()
          Opens the connector
 void service(ServletRequest outerRequest, ServletResponse outerResponse)
          Service a request of the outer servlet container by passing it to the nested instance of Jetty.
 
从类 org.eclipse.jetty.server.AbstractConnector 继承的方法
checkForwardedHeaders, configure, connectionClosed, connectionOpened, connectionUpgraded, customize, doStart, doStop, getAcceptorPriorityOffset, getAcceptors, getAcceptQueueSize, getConfidentialPort, getConfidentialScheme, getConnections, getConnectionsDurationMax, getConnectionsDurationMean, getConnectionsDurationStdDev, getConnectionsDurationTotal, getConnectionsOpen, getConnectionsOpenMax, getConnectionsRequestsMax, getConnectionsRequestsMean, getConnectionsRequestsStdDev, getForwardedCipherSuiteHeader, getForwardedForHeader, getForwardedHostHeader, getForwardedProtoHeader, getForwardedServerHeader, getForwardedSslSessionIdHeader, getHost, getHostHeader, getIntegralPort, getIntegralScheme, getLeftMostFieldValue, getLowResourceMaxIdleTime, getLowResourcesMaxIdleTime, getMaxBuffers, getMaxIdleTime, getName, getPort, getRequestBuffers, getRequestBufferSize, getRequestBufferType, getRequestHeaderSize, getRequestHeaderType, getRequests, getResolveNames, getResponseBuffers, getResponseBufferSize, getResponseBufferType, getResponseHeaderSize, getResponseHeaderType, getReuseAddress, getServer, getSoLingerTime, getStatsOn, getStatsOnMs, getThreadPool, isConfidential, isForwarded, isIntegral, isLowResources, join, persist, setAcceptorPriorityOffset, setAcceptors, setAcceptQueueSize, setConfidentialPort, setConfidentialScheme, setForwarded, setForwardedCipherSuiteHeader, setForwardedForHeader, setForwardedHostHeader, setForwardedProtoHeader, setForwardedServerHeader, setForwardedSslSessionIdHeader, setHost, setHostHeader, setIntegralPort, setIntegralScheme, setLowResourceMaxIdleTime, setLowResourcesMaxIdleTime, setMaxBuffers, setMaxIdleTime, setName, setPort, setRequestBuffers, setRequestBufferSize, setRequestHeaderSize, setResolveNames, setResponseBuffers, setResponseBufferSize, setResponseHeaderSize, setReuseAddress, setServer, setSoLingerTime, setStatsOn, setThreadPool, statsReset, stopAccept, toString
 
从类 org.eclipse.jetty.util.component.AggregateLifeCycle 继承的方法
addBean, addBean, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
从接口 org.eclipse.jetty.util.component.Dumpable 继承的方法
dump, dump
 

构造方法详细信息

NestedConnector

public NestedConnector()
方法详细信息

open

public void open()
          throws IOException
从接口 Connector 复制的描述
Opens the connector

抛出:
IOException

close

public void close()
           throws IOException
抛出:
IOException

getLocalPort

public int getLocalPort()
返回:
The actual port the connector is listening on or -1 if it has not been opened, or -2 if it has been closed.

getConnection

public Object getConnection()
返回:
the underlying socket, channel, buffer etc. for the connector.

accept

protected void accept(int acceptorID)
               throws IOException,
                      InterruptedException
指定者:
AbstractConnector 中的 accept
抛出:
IOException
InterruptedException

service

public void service(ServletRequest outerRequest,
                    ServletResponse outerResponse)
             throws IOException,
                    ServletException
Service a request of the outer servlet container by passing it to the nested instance of Jetty.

参数:
outerRequest -
outerResponse -
抛出:
IOException
ServletException


Copyright © 2013. All Rights Reserved.