public abstract class HttpRestRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.raml.model.Action |
action |
protected HttpProtocolAdapter |
adapter |
protected AbstractConfiguration |
config |
protected org.slf4j.Logger |
logger |
protected org.mule.api.MuleEvent |
requestEvent |
| Constructor and Description |
|---|
HttpRestRequest(org.mule.api.MuleEvent event,
AbstractConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
HttpProtocolAdapter |
getAdapter() |
String |
getMethod() |
String |
getResourcePath() |
protected int |
getSuccessStatus() |
protected String |
handleNotAcceptable() |
protected void |
handleUnsupportedMediaType() |
org.mule.api.MuleEvent |
process(org.mule.construct.Flow flow,
org.raml.model.Action action) |
protected abstract org.mule.api.MuleEvent |
processResponse(org.mule.api.MuleEvent responseEvent,
List<org.raml.model.MimeType> responseMimeTypes,
String responseRepresentation) |
protected final org.slf4j.Logger logger
protected org.mule.api.MuleEvent requestEvent
protected AbstractConfiguration config
protected org.raml.model.Action action
protected HttpProtocolAdapter adapter
public HttpRestRequest(org.mule.api.MuleEvent event,
AbstractConfiguration config)
public HttpProtocolAdapter getAdapter()
public String getResourcePath()
public String getMethod()
public org.mule.api.MuleEvent process(org.mule.construct.Flow flow,
org.raml.model.Action action)
throws org.mule.api.MuleException
org.mule.api.MuleExceptionprotected abstract org.mule.api.MuleEvent processResponse(org.mule.api.MuleEvent responseEvent,
List<org.raml.model.MimeType> responseMimeTypes,
String responseRepresentation)
throws org.mule.api.transformer.TransformerException,
org.mule.api.routing.filter.FilterUnacceptedException
org.mule.api.transformer.TransformerExceptionorg.mule.api.routing.filter.FilterUnacceptedExceptionprotected void handleUnsupportedMediaType()
throws UnsupportedMediaTypeException
UnsupportedMediaTypeExceptionprotected String handleNotAcceptable() throws NotAcceptableException
NotAcceptableExceptionprotected int getSuccessStatus()
Copyright © 2014. All rights reserved.