public class HttpRestRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.mule.raml.interfaces.model.IAction |
action |
protected HttpProtocolAdapter |
adapter |
protected AbstractConfiguration |
config |
protected static 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 |
getContentType() |
String |
getMethod() |
String |
getResourcePath() |
protected int |
getSuccessStatus() |
protected List<Integer> |
getSuccessStatusList() |
protected void |
handleUnsupportedMediaType() |
protected boolean |
throwNotAcceptable() |
org.mule.api.MuleEvent |
validate(org.mule.raml.interfaces.model.IAction action)
Validates the request against the RAML and negotiates the response representation.
|
protected static final org.slf4j.Logger logger
protected org.mule.api.MuleEvent requestEvent
protected AbstractConfiguration config
protected org.mule.raml.interfaces.model.IAction action
protected HttpProtocolAdapter adapter
public HttpRestRequest(org.mule.api.MuleEvent event,
AbstractConfiguration config)
public HttpProtocolAdapter getAdapter()
public String getResourcePath()
public String getMethod()
public String getContentType()
protected boolean throwNotAcceptable()
public org.mule.api.MuleEvent validate(org.mule.raml.interfaces.model.IAction action)
throws org.mule.api.MuleException
action - Raml action to be invokedorg.mule.api.MuleExceptionprotected void handleUnsupportedMediaType()
throws UnsupportedMediaTypeException
UnsupportedMediaTypeExceptionprotected int getSuccessStatus()
Copyright © 2021. All rights reserved.