org.apache.servicemix.web.http
Class HttpManagedServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.servicemix.web.http.HttpManagedServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class HttpManagedServlet
extends HttpServlet

This servlet is meant to be used when with the servicemix-http component. It is based on org.apache.servicemix.http.HttpManagedServlet, but uses introspection to be able to use it with an installed component, rather than an embedded component.

Author:
gnodet
See Also:
Serialized Form

Field Summary
static String COMPONENT_DEFAULT
           
static String COMPONENT_PROPERTY
           
static String CONTAINER_DEFAULT
           
static String CONTAINER_PROPERTY
           
static String MAPPING_PROPERTY
           
 
Constructor Summary
HttpManagedServlet()
           
 
Method Summary
 void init(ServletConfig config)
           
protected  void service(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTAINER_PROPERTY

public static final String CONTAINER_PROPERTY
See Also:
Constant Field Values

CONTAINER_DEFAULT

public static final String CONTAINER_DEFAULT
See Also:
Constant Field Values

COMPONENT_PROPERTY

public static final String COMPONENT_PROPERTY
See Also:
Constant Field Values

COMPONENT_DEFAULT

public static final String COMPONENT_DEFAULT
See Also:
Constant Field Values

MAPPING_PROPERTY

public static final String MAPPING_PROPERTY
See Also:
Constant Field Values
Constructor Detail

HttpManagedServlet

public HttpManagedServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

service

protected void service(HttpServletRequest request,
                       HttpServletResponse response)
                throws ServletException,
                       IOException
Overrides:
service in class HttpServlet
Throws:
ServletException
IOException


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.