public class CXFJaxrsService extends AbstractJaxrsService
AbstractJaxrsService.PathsAdjustedHttpServletRequestWrapper, AbstractJaxrsService.ServletConfigImpl
REQUEST_CONTENT_PATH_KEY
Constructor and Description |
---|
CXFJaxrsService(String serviceName) |
CXFJaxrsService(String serviceName,
Map<String,String> jaxrsConfigParameters) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.cxf.Bus |
createBus()
Deprecated.
No longer to be used, CXF BusFactory.getDefaultBus() is used (as well as returned here) instead,
which can be pre-configured externally if desired. Interceptors are now configured on the
the created CXF Server Endpoint instead of on the (now shared) bus.
|
void |
destroy() |
protected org.apache.cxf.transport.servlet.ServletController |
getController(org.apache.cxf.Bus bus,
javax.servlet.ServletContext servletContext) |
protected org.apache.cxf.transport.servlet.ServletController |
getController(javax.servlet.ServletContext servletContext)
Deprecated.
|
protected String |
getJaxrsPathInfo(HstRequestContext requestContext,
javax.servlet.http.HttpServletRequest request)
Concrete implementations must implement this method to get the jaxrs pathInfo.
|
void |
invoke(HstRequestContext requestContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setInFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> inFaultInterceptors) |
void |
setInInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> inInterceptors) |
void |
setJaxrsServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean jaxrsServerFactoryBean) |
void |
setOutFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> outFaultInterceptors) |
void |
setOutInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> outInterceptors) |
getAnnotatedClasses, getAnnotatedClassesResourcePath, getContentNode, getJaxrsRequest, getJaxrsServletConfig, getJaxrsServletPath, getMountContentPath, getObjectConverter, getRequestContentBean, getRequestContentBean, getServletPath, getSiteContentBaseBean, initialize, setAnnotatedClasses, setAnnotatedClassesResourcePath, setObjectConverter, setServletPath
public CXFJaxrsService(String serviceName)
public void setJaxrsServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean jaxrsServerFactoryBean)
public void setInInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> inInterceptors)
public void setInFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> inFaultInterceptors)
public void setOutInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> outInterceptors)
public void setOutFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> outFaultInterceptors)
@Deprecated protected org.apache.cxf.Bus createBus()
@Deprecated protected org.apache.cxf.transport.servlet.ServletController getController(javax.servlet.ServletContext servletContext)
getController(org.apache.cxf.Bus, javax.servlet.ServletContext)
insteadprotected org.apache.cxf.transport.servlet.ServletController getController(org.apache.cxf.Bus bus, javax.servlet.ServletContext servletContext)
public void invoke(HstRequestContext requestContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ContainerException
invoke
in interface JAXRSService
invoke
in class AbstractJaxrsService
ContainerException
public void destroy()
destroy
in interface JAXRSService
destroy
in class AbstractJaxrsService
protected String getJaxrsPathInfo(HstRequestContext requestContext, javax.servlet.http.HttpServletRequest request) throws ContainerException
AbstractJaxrsService
HstRequestContext#getBaseURL()#getPathInfo()
because the baseURL has a pathInfo which has been stripped from matrix parametersgetJaxrsPathInfo
in class AbstractJaxrsService
ContainerException
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.