Apache CXF API

org.apache.cxf.jaxrs.servlet
Class CXFNonSpringJaxrsServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.cxf.transport.servlet.AbstractHTTPServlet
              extended by org.apache.cxf.transport.servlet.CXFNonSpringServlet
                  extended by org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
All Implemented Interfaces:
Serializable, javax.servlet.Filter, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
CXFJaxrsRuntimeDelegateServlet

public class CXFNonSpringJaxrsServlet
extends CXFNonSpringServlet

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.cxf.transport.servlet.CXFNonSpringServlet
bus
 
Constructor Summary
CXFNonSpringJaxrsServlet()
           
 
Method Summary
protected  void configureSingleton(Object instance)
           
protected  javax.ws.rs.core.Application createApplicationInstance(String appClassName, javax.servlet.ServletConfig servletConfig)
           
protected  void createServerFromApplication(String applicationNames, javax.servlet.ServletConfig servletConfig)
           
protected  Object createSingletonInstance(Class<?> cls, Map<String,List<String>> props, javax.servlet.ServletConfig sc)
           
protected  String getParameterSplitChar(javax.servlet.ServletConfig servletConfig)
           
protected  List<?> getProviders(javax.servlet.ServletConfig servletConfig, String splitChar)
           
protected  Map<Class<?>,ResourceProvider> getResourceProviders(javax.servlet.ServletConfig servletConfig, Map<Class<?>,Map<String,List<String>>> resourceClasses)
           
protected  Map<Class<?>,Map<String,List<String>>> getServiceClasses(javax.servlet.ServletConfig servletConfig, boolean modelAvailable, String splitChar)
           
protected  boolean getStaticSubResolutionValue(javax.servlet.ServletConfig servletConfig)
           
 void init(javax.servlet.ServletConfig servletConfig)
           
protected  Class<?> loadApplicationClass(String appClassName)
           
protected  Class<?> loadClass(String cName)
           
protected  Class<?> loadClass(String cName, String classType)
           
protected static Map<String,List<String>> parseMapListSequence(String sequence)
           
protected  void setAllInterceptors(JAXRSServerFactoryBean bean, javax.servlet.ServletConfig servletConfig, String splitChar)
           
 void setClassLoader(ClassLoader loader)
           
protected  void setDocLocation(JAXRSServerFactoryBean bean, javax.servlet.ServletConfig servletConfig)
           
protected  void setExtensions(JAXRSServerFactoryBean bean, javax.servlet.ServletConfig servletConfig)
           
protected  void setInterceptors(JAXRSServerFactoryBean bean, javax.servlet.ServletConfig servletConfig, String paramName, String splitChar)
           
protected  void setInvoker(JAXRSServerFactoryBean bean, javax.servlet.ServletConfig servletConfig)
           
protected  void setSchemasLocations(JAXRSServerFactoryBean bean, javax.servlet.ServletConfig servletConfig)
           
 
Methods inherited from class org.apache.cxf.transport.servlet.CXFNonSpringServlet
destroy, destroyBus, doFilter, getBus, getDestinationRegistryFromBus, initClassLoader, invoke, loadBus, setBus
 
Methods inherited from class org.apache.cxf.transport.servlet.AbstractHTTPServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, finalizeServletInit, getResourceAsStream, getStaticResourceContentType, handleRequest, init, parseListSequence, parseMapSequence, redirect, serveStaticContent, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
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
 

Constructor Detail

CXFNonSpringJaxrsServlet

public CXFNonSpringJaxrsServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class CXFNonSpringServlet
Throws:
javax.servlet.ServletException

getParameterSplitChar

protected String getParameterSplitChar(javax.servlet.ServletConfig servletConfig)

getStaticSubResolutionValue

protected boolean getStaticSubResolutionValue(javax.servlet.ServletConfig servletConfig)

setExtensions

protected void setExtensions(JAXRSServerFactoryBean bean,
                             javax.servlet.ServletConfig servletConfig)

setAllInterceptors

protected void setAllInterceptors(JAXRSServerFactoryBean bean,
                                  javax.servlet.ServletConfig servletConfig,
                                  String splitChar)
                           throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

setSchemasLocations

protected void setSchemasLocations(JAXRSServerFactoryBean bean,
                                   javax.servlet.ServletConfig servletConfig)

setDocLocation

protected void setDocLocation(JAXRSServerFactoryBean bean,
                              javax.servlet.ServletConfig servletConfig)

setInterceptors

protected void setInterceptors(JAXRSServerFactoryBean bean,
                               javax.servlet.ServletConfig servletConfig,
                               String paramName,
                               String splitChar)
                        throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

setInvoker

protected void setInvoker(JAXRSServerFactoryBean bean,
                          javax.servlet.ServletConfig servletConfig)
                   throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

getServiceClasses

protected Map<Class<?>,Map<String,List<String>>> getServiceClasses(javax.servlet.ServletConfig servletConfig,
                                                                   boolean modelAvailable,
                                                                   String splitChar)
                                                            throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

getProviders

protected List<?> getProviders(javax.servlet.ServletConfig servletConfig,
                               String splitChar)
                        throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

parseMapListSequence

protected static Map<String,List<String>> parseMapListSequence(String sequence)

getResourceProviders

protected Map<Class<?>,ResourceProvider> getResourceProviders(javax.servlet.ServletConfig servletConfig,
                                                              Map<Class<?>,Map<String,List<String>>> resourceClasses)
                                                       throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

createSingletonInstance

protected Object createSingletonInstance(Class<?> cls,
                                         Map<String,List<String>> props,
                                         javax.servlet.ServletConfig sc)
                                  throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

configureSingleton

protected void configureSingleton(Object instance)

createServerFromApplication

protected void createServerFromApplication(String applicationNames,
                                           javax.servlet.ServletConfig servletConfig)
                                    throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

createApplicationInstance

protected javax.ws.rs.core.Application createApplicationInstance(String appClassName,
                                                                 javax.servlet.ServletConfig servletConfig)
                                                          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

loadApplicationClass

protected Class<?> loadApplicationClass(String appClassName)
                                 throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

loadClass

protected Class<?> loadClass(String cName)
                      throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

loadClass

protected Class<?> loadClass(String cName,
                             String classType)
                      throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

setClassLoader

public void setClassLoader(ClassLoader loader)

Apache CXF API

Apache CXF