@Alias(value="listener") @MetadataScope(outputResolver=HttpListenerMetadataResolver.class) @EmitsResponse public class HttpListener extends org.mule.runtime.extension.api.runtime.source.Source<Object,HttpRequestAttributes>
| Constructor and Description |
|---|
HttpListener() |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
buildErrorResponse() |
protected HttpResponse |
buildResponse(HttpListenerSuccessResponseBuilder listenerResponseBuilder,
boolean supportStreaming) |
protected HttpResponse |
doBuildResponse(HttpResponseBuilder responseBuilder,
HttpListenerSuccessResponseBuilder listenerResponseBuilder,
boolean supportsStreaming) |
Boolean |
getParseRequest() |
void |
onError(HttpListenerErrorResponseBuilder errorResponseBuilder,
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(HttpListenerSuccessResponseBuilder responseBuilder,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext) |
@OnSuccess
public void onSuccess(@Optional @DisplayName(value="Response Settings") @NullSafe
HttpListenerSuccessResponseBuilder responseBuilder,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
throws Exception
Exception@OnError
public void onError(@Optional @DisplayName(value="Error Response Settings") @NullSafe
HttpListenerErrorResponseBuilder errorResponseBuilder,
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(HttpListenerSuccessResponseBuilder listenerResponseBuilder, boolean supportStreaming) throws Exception
Exceptionprotected HttpResponse doBuildResponse(HttpResponseBuilder responseBuilder, HttpListenerSuccessResponseBuilder listenerResponseBuilder, boolean supportsStreaming) throws Exception
Exceptionprotected HttpResponse buildErrorResponse()
public Boolean getParseRequest()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.