public abstract class AbstractReceiverServlet extends HttpServlet
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTENT_TYPE_PROPERTY |
static long |
DEFAULT_GET_TIMEOUT |
static String |
DEFAULT_PAYLOAD_PARAMETER_NAME |
protected String |
defaultContentType |
protected boolean |
feedback |
static String |
FEEDBACK_PROPERTY |
protected Log |
logger
logger used by this class
|
protected MuleContext |
muleContext |
static String |
PAYLOAD_PARAMETER_NAME |
protected String |
payloadParameterName |
static String |
REQUEST_TIMEOUT_PROPERTY |
static String |
SERVLET_CONNECTOR_NAME_PROPERTY
Deprecated.
Use
MuleServletContextListener.CONNECTOR_NAME instead |
protected long |
timeout |
Constructor and Description |
---|
AbstractReceiverServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInit() |
protected void |
handleException(Throwable exception,
String message,
HttpServletResponse response) |
void |
init() |
protected MuleContext |
setupMuleContext() |
protected void |
setupResponseTransformer() |
protected void |
writeErrorResponseFromMessage(HttpServletResponse servletResponse,
MuleMessage message,
int errorCode,
String errorMessage) |
protected void |
writeResponse(HttpServletResponse servletResponse,
MuleMessage message) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
protected transient Log logger
public static final String REQUEST_TIMEOUT_PROPERTY
public static final String FEEDBACK_PROPERTY
public static final String DEFAULT_CONTENT_TYPE_PROPERTY
@Deprecated public static final String SERVLET_CONNECTOR_NAME_PROPERTY
MuleServletContextListener.CONNECTOR_NAME
insteadpublic static final String PAYLOAD_PARAMETER_NAME
public static final String DEFAULT_PAYLOAD_PARAMETER_NAME
public static final long DEFAULT_GET_TIMEOUT
protected String payloadParameterName
protected long timeout
protected boolean feedback
protected String defaultContentType
protected MuleContext muleContext
public final void init() throws ServletException
init
in class GenericServlet
ServletException
protected MuleContext setupMuleContext() throws ServletException
ServletException
protected void setupResponseTransformer() throws ServletException
ServletException
protected void doInit() throws ServletException
ServletException
protected void writeResponse(HttpServletResponse servletResponse, MuleMessage message) throws Exception
Exception
protected void handleException(Throwable exception, String message, HttpServletResponse response)
protected void writeErrorResponseFromMessage(HttpServletResponse servletResponse, MuleMessage message, int errorCode, String errorMessage) throws Exception
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.