Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 //
 //  ========================================================================
 //  Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
 //  ------------------------------------------------------------------------
 //  All rights reserved. This program and the accompanying materials
 //  are made available under the terms of the Eclipse Public License v1.0
 //  and Apache License v2.0 which accompanies this distribution.
 //
 //      The Eclipse Public License is available at
//      http://www.eclipse.org/legal/epl-v10.html
//
//      The Apache License v2.0 is available at
//      http://www.opensource.org/licenses/apache2.0.php
//
//  You may elect to redistribute this code under either of these licenses.
//  ========================================================================
//
package org.eclipse.jetty.server;
/* ------------------------------------------------------------ */
A Jetty Server Handler. A Handler instance is required by a Server to handle incoming HTTP requests. A Handler may: Handlers are passed the servlet API request and response object, but are not Servlets. The servlet container is implemented by handlers for context, security, session and servlet that modify the request object before passing it to the next stage of handling.
public interface Handler extends LifeCycleDestroyable
    /* ------------------------------------------------------------ */
    
Handle a request.

Parameters:
target The target of the request - either a URI or a name.
baseRequest The original unwrapped request object.
request The request either as the Request object or a wrapper of that request. The AbstractHttpConnection.getCurrentConnection() method can be used access the Request object if required.
response The response as the Response object or a wrapper of that request. The AbstractHttpConnection.getCurrentConnection() method can be used access the Response object if required.
Throws:
java.io.IOException
javax.servlet.ServletException
    public void handle(String targetRequest baseRequestHttpServletRequest requestHttpServletResponse response)
        throws IOExceptionServletException;
    
    public void setServer(Server server);
    public Server getServer();
    
    public void destroy();
    
New to GrepCode? Check out our FAQ X