public class CxfRsHttpListener extends java.lang.Object implements RsHttpListener
Modifier and Type | Class and Description |
---|---|
static class |
CxfRsHttpListener.CxfResponseValidationExceptionMapper |
class |
CxfRsHttpListener.RestServiceMBean |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CXF_JAXRS_PREFIX |
static java.lang.String |
PROVIDERS_KEY |
static java.lang.String |
RESOURCE_COMPARATOR_KEY |
static java.lang.String |
STATIC_RESOURCE_KEY |
static java.lang.String |
STATIC_SUB_RESOURCE_RESOLUTION_KEY |
static boolean |
TRY_STATIC_RESOURCES |
Constructor and Description |
---|
CxfRsHttpListener(DestinationFactory destinationFactory,
java.lang.String star,
CxfRSService cxfRSService) |
Modifier and Type | Method and Description |
---|---|
void |
deployApplication(Application application,
java.lang.String prefix,
java.lang.String webContext,
java.util.Collection<java.lang.Object> additionalProviders,
java.util.Map<java.lang.String,EJBRestServiceInfo> restEjbs,
java.lang.ClassLoader classLoader,
java.util.Collection<Injection> injections,
javax.naming.Context context,
WebBeansContext owbCtx,
ServiceConfiguration serviceConfiguration) |
void |
deployEJB(java.lang.String contextRoot,
java.lang.String fullContext,
BeanContext beanContext,
java.util.Collection<java.lang.Object> additionalProviders,
ServiceConfiguration configuration)
Deprecated.
|
void |
deployPojo(java.lang.ClassLoader loader,
java.lang.String contextRoot,
java.lang.String fullContext,
java.lang.Class<?> loadedClazz,
Application application,
java.util.Collection<Injection> injections,
javax.naming.Context context,
WebBeansContext owbCtx,
java.util.Collection<java.lang.Object> additionalProviders,
ServiceConfiguration configuration)
Deprecated.
|
void |
deploySingleton(java.lang.String contextRoot,
java.lang.String fullContext,
java.lang.Object o,
Application application,
java.util.Collection<java.lang.Object> additionalProviders,
ServiceConfiguration configuration)
Deprecated.
|
void |
doInvoke(HttpRequest httpRequest,
HttpResponse httpResponse) |
java.io.InputStream |
findStaticContent(HttpServletRequest request,
java.lang.String[] welcomeFiles) |
static void |
injectApplication(Application application,
JAXRSServerFactoryBean factory)
JAX-RS allows for the Application subclass to have @Context injectable fields, as is
the case for Resources and Providers.
|
boolean |
isActive(java.lang.String name,
ServiceConfiguration serviceConfiguration) |
boolean |
isCXFResource(HttpServletRequest request) |
boolean |
matchPath(HttpServletRequest request) |
void |
onMessage(HttpRequest httpRequest,
HttpResponse httpResponse) |
boolean |
serveStaticContent(HttpServletRequest request,
HttpServletResponse response,
java.lang.String pathInfo) |
void |
setUrlPattern(java.lang.String pattern) |
void |
undeploy() |
public static final java.lang.String CXF_JAXRS_PREFIX
public static final java.lang.String PROVIDERS_KEY
public static final java.lang.String STATIC_RESOURCE_KEY
public static final java.lang.String STATIC_SUB_RESOURCE_RESOLUTION_KEY
public static final java.lang.String RESOURCE_COMPARATOR_KEY
public static final boolean TRY_STATIC_RESOURCES
public CxfRsHttpListener(DestinationFactory destinationFactory, java.lang.String star, CxfRSService cxfRSService)
public void setUrlPattern(java.lang.String pattern)
public void onMessage(HttpRequest httpRequest, HttpResponse httpResponse) throws java.lang.Exception
onMessage
in interface HttpListener
java.lang.Exception
public void doInvoke(HttpRequest httpRequest, HttpResponse httpResponse) throws java.io.IOException
java.io.IOException
public boolean matchPath(HttpServletRequest request)
public java.io.InputStream findStaticContent(HttpServletRequest request, java.lang.String[] welcomeFiles) throws ServletException
ServletException
public boolean serveStaticContent(HttpServletRequest request, HttpServletResponse response, java.lang.String pathInfo) throws ServletException
ServletException
public boolean isCXFResource(HttpServletRequest request)
@Deprecated public void deploySingleton(java.lang.String contextRoot, java.lang.String fullContext, java.lang.Object o, Application application, java.util.Collection<java.lang.Object> additionalProviders, ServiceConfiguration configuration)
deploySingleton
in interface RsHttpListener
@Deprecated public void deployPojo(java.lang.ClassLoader loader, java.lang.String contextRoot, java.lang.String fullContext, java.lang.Class<?> loadedClazz, Application application, java.util.Collection<Injection> injections, javax.naming.Context context, WebBeansContext owbCtx, java.util.Collection<java.lang.Object> additionalProviders, ServiceConfiguration configuration)
deployPojo
in interface RsHttpListener
@Deprecated public void deployEJB(java.lang.String contextRoot, java.lang.String fullContext, BeanContext beanContext, java.util.Collection<java.lang.Object> additionalProviders, ServiceConfiguration configuration)
deployEJB
in interface RsHttpListener
public void undeploy()
undeploy
in interface RsHttpListener
public void deployApplication(Application application, java.lang.String prefix, java.lang.String webContext, java.util.Collection<java.lang.Object> additionalProviders, java.util.Map<java.lang.String,EJBRestServiceInfo> restEjbs, java.lang.ClassLoader classLoader, java.util.Collection<Injection> injections, javax.naming.Context context, WebBeansContext owbCtx, ServiceConfiguration serviceConfiguration)
deployApplication
in interface RsHttpListener
public static void injectApplication(Application application, JAXRSServerFactoryBean factory)
public boolean isActive(java.lang.String name, ServiceConfiguration serviceConfiguration)