Look at method internalDeploy in
gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java

This method is called at startup to deploy each topology and also later
when a new or modified topology is detected. You will note that this
method adds a WebAppContext (which is a handler) to the context
collection. The bottom line is that Knox starts up empty and then
deploys WARs dynamically.

On 3/12/14 2:06 AM, 吴晓华 wrote:
> I am only interested in Knox, I think there should be a handler to
> process the request from the client,but I only see
> "contexts = new ContextHandlerCollection();
> jetty.setHandler( contexts );"
>
> I want to know which handler that is used to process the request from
> client and I want to see the source code of the handler
>
>
> 2014-03-12 12:49 GMT+08:00 Vinay Shukla <[email protected]
> <mailto:[email protected]>>:
>
>     What are you trying to do with Knox? Knox does embed Jetty and we
>     will provide more details
>     However if we know your use case, we can offer better help.
>
>     -Vinay
>
>
>     On Tue, Mar 11, 2014 at 9:31 PM, 吴晓华 <[email protected]
>     <mailto:[email protected]>> wrote:
>
>         Hello:
>         Knox use the Jetty, but I can not find where does the handlers
>         of jetty are setted.
>         Can anybody help me
>
>
>
>
>
> -- 
> ------------------------------------------------------------
> 吴晓华
> 安全技术研究部
> 北京天融信科技有限公司
> 地址:北京市海淀区上地东路1号华控大厦3层
> 邮编:100085
> 电话:15110172241
> 电子邮件:[email protected] <mailto:[email protected]>


-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Reply via email to