org.apache.openejb.server.cxf.rs
Class CxfRsHttpListener

java.lang.Object
  extended by org.apache.openejb.server.cxf.rs.CxfRsHttpListener
All Implemented Interfaces:
HttpListener, RsHttpListener

public class CxfRsHttpListener
extends Object
implements RsHttpListener


Nested Class Summary
 class CxfRsHttpListener.RestServiceMBean
           
 
Field Summary
static String CXF_JAXRS_PREFIX
           
static String PROVIDERS_KEY
           
static String RESOURCE_COMPARATOR_KEY
           
static String STATIC_RESOURCE_KEY
           
static String STATIC_SUB_RESOURCE_RESOLUTION_KEY
           
 
Constructor Summary
CxfRsHttpListener(org.apache.cxf.transport.http.HTTPTransportFactory httpTransportFactory, String star)
           
 
Method Summary
 void deployApplication(javax.ws.rs.core.Application application, String prefix, String webContext, Collection<Object> additionalProviders, Map<String,EJBRestServiceInfo> restEjbs, ClassLoader classLoader, Collection<org.apache.openejb.Injection> injections, Context context, org.apache.webbeans.config.WebBeansContext owbCtx, org.apache.openejb.assembler.classic.util.ServiceConfiguration serviceConfiguration)
           
 void deployEJB(String contextRoot, String fullContext, org.apache.openejb.BeanContext beanContext, Collection<Object> additionalProviders, org.apache.openejb.assembler.classic.util.ServiceConfiguration configuration)
           
 void deployPojo(ClassLoader loader, String contextRoot, String fullContext, Class<?> loadedClazz, javax.ws.rs.core.Application app, Collection<org.apache.openejb.Injection> injections, Context context, org.apache.webbeans.config.WebBeansContext owbCtx, Collection<Object> additionalProviders, org.apache.openejb.assembler.classic.util.ServiceConfiguration configuration)
           
 void deploySingleton(String contextRoot, String fullContext, Object o, javax.ws.rs.core.Application appInstance, Collection<Object> additionalProviders, org.apache.openejb.assembler.classic.util.ServiceConfiguration configuration)
           
 void onMessage(HttpRequest httpRequest, HttpResponse httpResponse)
           
protected  void serveStaticContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pathInfo)
           
 void undeploy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CXF_JAXRS_PREFIX

public static final String CXF_JAXRS_PREFIX
See Also:
Constant Field Values

PROVIDERS_KEY

public static final String PROVIDERS_KEY
See Also:
Constant Field Values

STATIC_RESOURCE_KEY

public static final String STATIC_RESOURCE_KEY
See Also:
Constant Field Values

STATIC_SUB_RESOURCE_RESOLUTION_KEY

public static final String STATIC_SUB_RESOURCE_RESOLUTION_KEY
See Also:
Constant Field Values

RESOURCE_COMPARATOR_KEY

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

CxfRsHttpListener

public CxfRsHttpListener(org.apache.cxf.transport.http.HTTPTransportFactory httpTransportFactory,
                         String star)
Method Detail

onMessage

public void onMessage(HttpRequest httpRequest,
                      HttpResponse httpResponse)
               throws Exception
Specified by:
onMessage in interface HttpListener
Throws:
Exception

serveStaticContent

protected void serveStaticContent(javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response,
                                  String pathInfo)
                           throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

deploySingleton

public void deploySingleton(String contextRoot,
                            String fullContext,
                            Object o,
                            javax.ws.rs.core.Application appInstance,
                            Collection<Object> additionalProviders,
                            org.apache.openejb.assembler.classic.util.ServiceConfiguration configuration)
Specified by:
deploySingleton in interface RsHttpListener

deployPojo

public void deployPojo(ClassLoader loader,
                       String contextRoot,
                       String fullContext,
                       Class<?> loadedClazz,
                       javax.ws.rs.core.Application app,
                       Collection<org.apache.openejb.Injection> injections,
                       Context context,
                       org.apache.webbeans.config.WebBeansContext owbCtx,
                       Collection<Object> additionalProviders,
                       org.apache.openejb.assembler.classic.util.ServiceConfiguration configuration)
Specified by:
deployPojo in interface RsHttpListener

deployEJB

public void deployEJB(String contextRoot,
                      String fullContext,
                      org.apache.openejb.BeanContext beanContext,
                      Collection<Object> additionalProviders,
                      org.apache.openejb.assembler.classic.util.ServiceConfiguration configuration)
Specified by:
deployEJB in interface RsHttpListener

undeploy

public void undeploy()
Specified by:
undeploy in interface RsHttpListener

deployApplication

public void deployApplication(javax.ws.rs.core.Application application,
                              String prefix,
                              String webContext,
                              Collection<Object> additionalProviders,
                              Map<String,EJBRestServiceInfo> restEjbs,
                              ClassLoader classLoader,
                              Collection<org.apache.openejb.Injection> injections,
                              Context context,
                              org.apache.webbeans.config.WebBeansContext owbCtx,
                              org.apache.openejb.assembler.classic.util.ServiceConfiguration serviceConfiguration)
Specified by:
deployApplication in interface RsHttpListener


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.