Package org.apache.cxf.transport.servlet
Class CXFNonSpringServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.cxf.transport.servlet.AbstractHTTPServlet
-
- org.apache.cxf.transport.servlet.CXFNonSpringServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Filter
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
CXFBlueprintServlet
,CXFServlet
public class CXFNonSpringServlet extends AbstractHTTPServlet
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.cxf.Bus
bus
static String
TRANSPORT_ID
-
Constructor Summary
Constructors Constructor Description CXFNonSpringServlet()
CXFNonSpringServlet(DestinationRegistry destinationRegistry)
CXFNonSpringServlet(DestinationRegistry destinationRegistry, boolean loadBus)
CXFNonSpringServlet(DestinationRegistry destinationRegistry, org.apache.cxf.Bus bus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ServletController
createServletController(javax.servlet.ServletConfig servletConfig)
void
destroy()
void
destroyBus()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
protected void
finalizeServletInit(javax.servlet.ServletConfig servletConfig)
org.apache.cxf.Bus
getBus()
protected DestinationRegistry
getDestinationRegistryFromBusOrDefault(String transportId)
void
init(javax.servlet.ServletConfig sc)
protected ClassLoader
initClassLoader()
protected void
invoke(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
loadBus(javax.servlet.ServletConfig sc)
protected void
registerServletContextResolver(javax.servlet.ServletConfig sc)
void
setBus(org.apache.cxf.Bus bus)
-
Methods inherited from class org.apache.cxf.transport.servlet.AbstractHTTPServlet
checkXForwardedHeaders, doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getResourceAsStream, getStaticResourceContentType, handleRequest, init, parseListSequence, parseMapSequence, redirect, serveStaticContent, service
-
-
-
-
Field Detail
-
TRANSPORT_ID
public static final String TRANSPORT_ID
- See Also:
- Constant Field Values
-
bus
protected org.apache.cxf.Bus bus
-
-
Constructor Detail
-
CXFNonSpringServlet
public CXFNonSpringServlet()
-
CXFNonSpringServlet
public CXFNonSpringServlet(DestinationRegistry destinationRegistry)
-
CXFNonSpringServlet
public CXFNonSpringServlet(DestinationRegistry destinationRegistry, boolean loadBus)
-
CXFNonSpringServlet
public CXFNonSpringServlet(DestinationRegistry destinationRegistry, org.apache.cxf.Bus bus)
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig sc) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classAbstractHTTPServlet
- Throws:
javax.servlet.ServletException
-
finalizeServletInit
protected void finalizeServletInit(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
- Overrides:
finalizeServletInit
in classAbstractHTTPServlet
- Throws:
javax.servlet.ServletException
-
registerServletContextResolver
protected void registerServletContextResolver(javax.servlet.ServletConfig sc)
-
initClassLoader
protected ClassLoader initClassLoader()
-
getDestinationRegistryFromBusOrDefault
protected DestinationRegistry getDestinationRegistryFromBusOrDefault(String transportId)
-
loadBus
protected void loadBus(javax.servlet.ServletConfig sc)
-
createServletController
protected ServletController createServletController(javax.servlet.ServletConfig servletConfig)
-
getBus
public org.apache.cxf.Bus getBus()
- Specified by:
getBus
in classAbstractHTTPServlet
-
setBus
public void setBus(org.apache.cxf.Bus bus)
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
invoke
protected void invoke(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
- Specified by:
invoke
in classAbstractHTTPServlet
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
- Specified by:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in classAbstractHTTPServlet
-
destroyBus
public void destroyBus()
-
-