@Alias(value="listener") @MetadataScope(outputResolver=HttpListenerMetadataResolver.class) @EmitsResponse public class HttpListener extends org.mule.runtime.extension.api.runtime.source.Source<Object,HttpRequestAttributes>
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_NAMESPACE |
| Constructor and Description |
|---|
HttpListener() |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
buildErrorResponse() |
protected HttpResponse |
buildResponse(HttpListenerResponseBuilder listenerResponseBuilder,
boolean supportStreaming) |
protected HttpResponse |
doBuildResponse(HttpResponseBuilder responseBuilder,
HttpListenerResponseBuilder listenerResponseBuilder,
boolean supportsStreaming) |
Boolean |
getParseRequest() |
void |
onError(HttpListenerResponseBuilder errorResponse,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext,
org.mule.runtime.api.message.Error error) |
void |
onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<Object,HttpRequestAttributes> sourceCallback) |
void |
onStop() |
void |
onSuccess(HttpListenerResponseBuilder response,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext) |
public static final String HTTP_NAMESPACE
@OnSuccess
public void onSuccess(@Optional @Placement(tab="Response Settings") @NullSafe
HttpListenerResponseBuilder response,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
throws Exception
Exception@OnError
public void onError(@Optional @Placement(tab="Error Response Settings") @NullSafe
HttpListenerResponseBuilder errorResponse,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext,
org.mule.runtime.api.message.Error error)
public void onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<Object,HttpRequestAttributes> sourceCallback) throws org.mule.runtime.api.exception.MuleException
onStart in class org.mule.runtime.extension.api.runtime.source.Source<Object,HttpRequestAttributes>org.mule.runtime.api.exception.MuleExceptionpublic void onStop()
onStop in class org.mule.runtime.extension.api.runtime.source.Source<Object,HttpRequestAttributes>protected HttpResponse buildResponse(HttpListenerResponseBuilder listenerResponseBuilder, boolean supportStreaming) throws Exception
Exceptionprotected HttpResponse doBuildResponse(HttpResponseBuilder responseBuilder, HttpListenerResponseBuilder listenerResponseBuilder, boolean supportsStreaming) throws Exception
Exceptionprotected HttpResponse buildErrorResponse()
public Boolean getParseRequest()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.