org.hippoecm.hst.pagecomposer.jaxrs.cxf
Class CXFJaxrsHstConfigService

java.lang.Object
  extended by org.hippoecm.hst.jaxrs.AbstractJaxrsService
      extended by org.hippoecm.hst.jaxrs.cxf.CXFJaxrsService
          extended by org.hippoecm.hst.pagecomposer.jaxrs.cxf.CXFJaxrsHstConfigService
All Implemented Interfaces:
JAXRSService

public class CXFJaxrsHstConfigService
extends CXFJaxrsService

Version:
$Id: CXFJaxrsContentService.java 24556 2010-10-22 01:10:59Z wko $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hippoecm.hst.jaxrs.AbstractJaxrsService
AbstractJaxrsService.PathsAdjustedHttpServletRequestWrapper, AbstractJaxrsService.ServletConfigImpl
 
Field Summary
static String REQUEST_CONFIG_NODE_IDENTIFIER
           
static String REQUEST_ERROR_MESSAGE_ATTRIBUTE
           
 
Fields inherited from class org.hippoecm.hst.jaxrs.AbstractJaxrsService
BEANS_ANNOTATED_CLASSES_CONF_PARAM
 
Fields inherited from interface org.hippoecm.hst.jaxrs.JAXRSService
REQUEST_CONTENT_BEAN_KEY, REQUEST_CONTENT_NODE_KEY, REQUEST_CONTENT_PATH_KEY, REQUEST_CONTENT_SITE_CONTENT_BASE_BEAN_KEY
 
Constructor Summary
CXFJaxrsHstConfigService(String serviceName)
           
CXFJaxrsHstConfigService(String serviceName, Map<String,String> jaxrsConfigParameters)
           
 
Method Summary
protected  String getJaxrsPathInfo(HstRequestContext requestContext, javax.servlet.http.HttpServletRequest request)
          Concrete implementations must implement this method to get the jaxrs pathInfo.
protected  javax.servlet.http.HttpServletRequest getJaxrsRequest(HstRequestContext requestContext, javax.servlet.http.HttpServletRequest request)
           
 void invoke(HstRequestContext requestContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class org.hippoecm.hst.jaxrs.cxf.CXFJaxrsService
createBus, destroy, getController, setInFaultInterceptors, setInInterceptors, setJaxrsServerFactoryBean, setOutFaultInterceptors, setOutInterceptors
 
Methods inherited from class org.hippoecm.hst.jaxrs.AbstractJaxrsService
getAnnotatedClasses, getAnnotatedClassesResourcePath, getContentNode, getJaxrsServletConfig, getJaxrsServletPath, getMountContentPath, getObjectConverter, getRequestContentBean, getRequestContentBean, getServletPath, getSiteContentBaseBean, initialize, setAnnotatedClasses, setAnnotatedClassesResourcePath, setObjectConverter, setServletPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_CONFIG_NODE_IDENTIFIER

public static final String REQUEST_CONFIG_NODE_IDENTIFIER
See Also:
Constant Field Values

REQUEST_ERROR_MESSAGE_ATTRIBUTE

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

CXFJaxrsHstConfigService

public CXFJaxrsHstConfigService(String serviceName)

CXFJaxrsHstConfigService

public CXFJaxrsHstConfigService(String serviceName,
                                Map<String,String> jaxrsConfigParameters)
Method Detail

getJaxrsPathInfo

protected String getJaxrsPathInfo(HstRequestContext requestContext,
                                  javax.servlet.http.HttpServletRequest request)
                           throws ContainerException
Description copied from class: AbstractJaxrsService
Concrete implementations must implement this method to get the jaxrs pathInfo. This one is most likely different than HstRequestContext#getBaseURL()#getPathInfo() because the baseURL has a pathInfo which has been stripped from matrix parameters

Overrides:
getJaxrsPathInfo in class CXFJaxrsService
Returns:
Throws:
ContainerException

getJaxrsRequest

protected javax.servlet.http.HttpServletRequest getJaxrsRequest(HstRequestContext requestContext,
                                                                javax.servlet.http.HttpServletRequest request)
                                                         throws ContainerException
Overrides:
getJaxrsRequest in class AbstractJaxrsService
Throws:
ContainerException

invoke

public void invoke(HstRequestContext requestContext,
                   javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws ContainerException
Specified by:
invoke in interface JAXRSService
Overrides:
invoke in class CXFJaxrsService
Throws:
ContainerException


Copyright © 2008-2012 Hippo. All Rights Reserved.