@Alias(value="listener")
@EmitsResponse
@MediaType(value="application/octet-stream",
strict=false)
public class Listener
extends org.mule.runtime.extension.api.runtime.source.Source<InputStream,CoapRequestAttributes>
| Constructor and Description |
|---|
Listener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
Called by Mule to start the listener.
|
void |
onStop()
Called by Mule when stopping the listener.
|
void |
onSuccess(ResponseParams response,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
Called when processing incoming request was successful.
|
void |
onTerminate(org.mule.runtime.extension.api.runtime.source.SourceResult sourceResult)
Returns internal server error when needed.
|
String |
toString()
Get String repesentation.
|
public void onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback) throws org.mule.runtime.api.exception.MuleException
onStart in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,CoapRequestAttributes>org.mule.runtime.api.exception.MuleException@OnSuccess
@MediaType(value="*/*",
strict=false)
public void onSuccess(@Optional @NullSafe @Alias(value="response") @Placement(tab="Response",order=1)
ResponseParams response,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
throws InternalInvalidByteArrayValueException,
InternalInvalidResponseCodeException,
InternalInvalidOptionValueException,
InternalExchangeException,
InternalUnkownOptionException
response - callbackContext - InternalInvalidByteArrayValueExceptionInternalInvalidResponseCodeExceptionInternalExchangeExceptionInternalUnkownOptionException - When given option was not defined.InvalidOptionValueException - When given option value is invalid.InternalInvalidOptionValueException@OnTerminate
public void onTerminate(org.mule.runtime.extension.api.runtime.source.SourceResult sourceResult)
throws InternalExchangeException
sourceResult - Provides processing context.InternalExchangeException - When the exchange object was absent.public void onStop()
onStop in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,CoapRequestAttributes>Copyright © 2019–2025 Teslanet.nl. All rights reserved.