com.taobao.metamorphosis.http.processor
类 MetamorphosisOnJettyProcessor

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.util.component.AggregateLifeCycle
          继承者 org.eclipse.jetty.server.handler.AbstractHandler
              继承者 com.taobao.metamorphosis.http.processor.MetamorphosisOnJettyProcessor
所有已实现的接口:
org.eclipse.jetty.server.Handler, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.LifeCycle

public class MetamorphosisOnJettyProcessor
extends org.eclipse.jetty.server.handler.AbstractHandler

Use Jetty as http server and handle request of get message/put message/get offset


嵌套类摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
org.eclipse.jetty.util.component.LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
MetamorphosisOnJettyProcessor(MetaMorphosisBroker metaMorphosisBroker)
           
 
方法摘要
protected  void doResponseHeaders(javax.servlet.http.HttpServletResponse response, String mimeType)
          Set the response headers.
 void handle(String target, org.eclipse.jetty.server.Request jettyRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
从类 org.eclipse.jetty.server.handler.AbstractHandler 继承的方法
destroy, doStart, doStop, dumpThis, getServer, setServer
 
从类 org.eclipse.jetty.util.component.AggregateLifeCycle 继承的方法
addBean, addBean, contains, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, 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, toString, wait, wait, wait
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

构造方法详细信息

MetamorphosisOnJettyProcessor

public MetamorphosisOnJettyProcessor(MetaMorphosisBroker metaMorphosisBroker)
方法详细信息

handle

public void handle(String target,
                   org.eclipse.jetty.server.Request jettyRequest,
                   javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws IOException,
                   javax.servlet.ServletException
抛出:
IOException
javax.servlet.ServletException

doResponseHeaders

protected void doResponseHeaders(javax.servlet.http.HttpServletResponse response,
                                 String mimeType)
Set the response headers. This method is called to set the response headers such as content type and content length. May be extended to add additional headers.

参数:
response -
resource -
mimeType -


Copyright © 2010–2013. All rights reserved.