public class CxfRsHttpListener extends Object implements RsHttpListener
| Modifier and Type | Class and Description |
|---|---|
static class |
CxfRsHttpListener.CxfResponseValidationExceptionMapper |
class |
CxfRsHttpListener.RestServiceMBean |
| Modifier and Type | Field and Description |
|---|---|
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 |
static boolean |
TRY_STATIC_RESOURCES |
| Constructor and Description |
|---|
CxfRsHttpListener(org.apache.cxf.transport.DestinationFactory destinationFactory,
String star,
CxfRSService cxfRSService) |
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
|
void |
deployPojo(ClassLoader loader,
String contextRoot,
String fullContext,
Class<?> loadedClazz,
javax.ws.rs.core.Application application,
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)
Deprecated.
|
void |
deploySingleton(String contextRoot,
String fullContext,
Object o,
javax.ws.rs.core.Application application,
Collection<Object> additionalProviders,
org.apache.openejb.assembler.classic.util.ServiceConfiguration configuration)
Deprecated.
|
void |
doInvoke(HttpRequest httpRequest,
HttpResponse httpResponse) |
InputStream |
findStaticContent(javax.servlet.http.HttpServletRequest request,
String[] welcomeFiles) |
static void |
injectApplication(javax.ws.rs.core.Application application,
org.apache.cxf.jaxrs.JAXRSServerFactoryBean factory)
JAX-RS allows for the Application subclass to have @Context injectable fields, as is
the case for Resources and Providers.
|
boolean |
isActive(String name,
org.apache.openejb.assembler.classic.util.ServiceConfiguration serviceConfiguration) |
boolean |
isCXFResource(javax.servlet.http.HttpServletRequest request) |
boolean |
matchPath(javax.servlet.http.HttpServletRequest request) |
void |
onMessage(HttpRequest httpRequest,
HttpResponse httpResponse) |
boolean |
serveStaticContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String pathInfo) |
void |
setUrlPattern(String pattern) |
void |
undeploy() |
public static final String CXF_JAXRS_PREFIX
public static final String PROVIDERS_KEY
public static final String STATIC_RESOURCE_KEY
public static final String STATIC_SUB_RESOURCE_RESOLUTION_KEY
public static final String RESOURCE_COMPARATOR_KEY
public static final boolean TRY_STATIC_RESOURCES
public CxfRsHttpListener(org.apache.cxf.transport.DestinationFactory destinationFactory,
String star,
CxfRSService cxfRSService)
public void setUrlPattern(String pattern)
public void onMessage(HttpRequest httpRequest, HttpResponse httpResponse) throws Exception
onMessage in interface HttpListenerExceptionpublic void doInvoke(HttpRequest httpRequest, HttpResponse httpResponse) throws IOException
IOExceptionpublic boolean matchPath(javax.servlet.http.HttpServletRequest request)
public InputStream findStaticContent(javax.servlet.http.HttpServletRequest request, String[] welcomeFiles) throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic boolean serveStaticContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String pathInfo)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic boolean isCXFResource(javax.servlet.http.HttpServletRequest request)
@Deprecated public void deploySingleton(String contextRoot, String fullContext, Object o, javax.ws.rs.core.Application application, Collection<Object> additionalProviders, org.apache.openejb.assembler.classic.util.ServiceConfiguration configuration)
deploySingleton in interface RsHttpListener@Deprecated public void deployPojo(ClassLoader loader, String contextRoot, String fullContext, Class<?> loadedClazz, javax.ws.rs.core.Application application, 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)
deployPojo in interface RsHttpListener@Deprecated public void deployEJB(String contextRoot, String fullContext, org.apache.openejb.BeanContext beanContext, Collection<Object> additionalProviders, org.apache.openejb.assembler.classic.util.ServiceConfiguration configuration)
deployEJB in interface RsHttpListenerpublic void undeploy()
undeploy in interface RsHttpListenerpublic 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)
deployApplication in interface RsHttpListenerpublic static void injectApplication(javax.ws.rs.core.Application application,
org.apache.cxf.jaxrs.JAXRSServerFactoryBean factory)
public boolean isActive(String name, org.apache.openejb.assembler.classic.util.ServiceConfiguration serviceConfiguration)
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.