public class ResponseProcessor extends Object
| Constructor and Description |
|---|
ResponseProcessor(String handlerName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHandlerName() |
List<org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapResponseAttributes>> |
getListeners()
Get listeners.
|
static ResponseProcessor |
getResponseProcessor(String handlerName)
Get reponse processor of the handler..
|
static void |
processMuleFlow(String localAddress,
CoapRequestBuilder requestBuilder,
org.eclipse.californium.core.CoapResponse response,
ResponseProcessor processor)
Passes asynchronous response to the muleflow.
|
static void |
processMuleFlow(String localAddress,
CoapRequestBuilder requestBuilder,
org.eclipse.californium.core.CoapResponse response,
org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapResponseAttributes> callback)
Passes asynchronous response to the muleflow.
|
static void |
removeHandler(String handlerName)
Remove a handler
|
public ResponseProcessor(String handlerName)
handlerName - public static ResponseProcessor getResponseProcessor(String handlerName) throws InternalInvalidHandlerException
handlerName - the name of the handlerInternalInvalidHandlerExceptions - When handler name is invalidInternalInvalidHandlerExceptionpublic static void removeHandler(String handlerName) throws InternalInvalidHandlerException
handlerName - the name of the handler to removeInternalInvalidHandlerException - When handler name is invalidpublic String getHandlerName()
public List<org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapResponseAttributes>> getListeners()
public static void processMuleFlow(String localAddress, CoapRequestBuilder requestBuilder, org.eclipse.californium.core.CoapResponse response, ResponseProcessor processor) throws InternalResponseException
localAddress - The local address of the endpoint that has received the response.requestBuilder - The builder containing request parametersresponse - The coap response to process.processor - The processor method of the muleflow.InternalResponseException - When the received CoAP response contains values that cannot be processed.public static void processMuleFlow(String localAddress, CoapRequestBuilder requestBuilder, org.eclipse.californium.core.CoapResponse response, org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapResponseAttributes> callback) throws InternalResponseException
localAddress - The local address of the endpoint that has received the response.requestBuilder - The builder containing request parametersresponse - The received response.callback - The callback method of the muleflow.InternalResponseException - When the received CoAP response contains values that cannot be processed.Copyright © 2019–2025 Teslanet.nl. All rights reserved.