org.mule.module.jersey
Class JerseyResourcesComponent
java.lang.Object
org.mule.component.AbstractComponent
org.mule.module.jersey.JerseyResourcesComponent
- All Implemented Interfaces:
- AnnotatedObject, Component, FlowConstructAware, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, MessageProcessor
public class JerseyResourcesComponent
- extends AbstractComponent
Wraps a set of components which can get invoked by Jersey. This component will
map the MuleMessage format to the internal Jersey format. Jersey will then select
the appropriate component to invoke based on the request parameters/URI.
Methods inherited from class org.mule.component.AbstractComponent |
createResultEvent, dispose, doDispose, doStart, doStop, fireComponentNotification, getAnnotation, getAnnotations, getFlowConstruct, getInterceptors, getName, getStatistics, initialise, process, release, setAnnotations, setFlowConstruct, setInterceptors, setMuleContext, start, stop, toString |
JERSEY_RESPONSE
public static String JERSEY_RESPONSE
JerseyResourcesComponent
public JerseyResourcesComponent()
doInitialise
protected void doInitialise()
throws InitialisationException
- Overrides:
doInitialise
in class AbstractComponent
- Throws:
InitialisationException
initializeResources
protected void initializeResources(Set<Class<?>> resources)
throws InitialisationException
- Throws:
InitialisationException
initializeOtherResources
protected void initializeOtherResources(List<?> newResources,
Set<Class<?>> resources)
createConfiguration
protected com.sun.jersey.api.core.DefaultResourceConfig createConfiguration(Set<Class<?>> resources)
doInvoke
protected Object doInvoke(MuleEvent event)
throws Exception
- Specified by:
doInvoke
in class AbstractComponent
- Throws:
Exception
getInputStream
protected static InputStream getInputStream(MuleMessage message)
throws TransformerException
- Throws:
TransformerException
getComponentProvider
protected com.sun.jersey.core.spi.component.ioc.IoCComponentProviderFactory getComponentProvider()
getCompleteUri
protected static URI getCompleteUri(URI endpointUri,
String scheme,
String host,
String path,
String query)
throws URISyntaxException
- Throws:
URISyntaxException
getBaseUri
protected static URI getBaseUri(URI endpointUri,
String scheme,
String host,
String contextPath)
throws URISyntaxException
- Throws:
URISyntaxException
getComponents
public List<JavaComponent> getComponents()
setComponents
public void setComponents(List<JavaComponent> components)
setMessageProcessors
public void setMessageProcessors(List<MessageProcessor> messageProcessors)
setExceptionMapper
public void setExceptionMapper(javax.ws.rs.ext.ExceptionMapper<?> exceptionMapper)
setContextResolver
public void setContextResolver(javax.ws.rs.ext.ContextResolver<?> contextResolver)
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.