public class AbstractResource
extends org.eclipse.californium.core.CoapResource
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CSV_REGEX
Regular expression for splitting comma separated values.
|
protected boolean |
earlyAck
Flag that indicates whether the resource should acknowledge before processing the request.
|
protected static org.slf4j.Marker |
ERROR_RESPONSE_MARKER
Marker for logging error responses.
|
protected static String |
NO_LISTENER_LOG_FORMAT
No listener message log format.
|
| Constructor and Description |
|---|
AbstractResource(String name,
boolean visible)
Resource constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected CoapRequestAttributesImpl |
createRequestAttributes(org.eclipse.californium.core.server.resources.CoapExchange coapExchange)
Create request attributes.
|
org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> |
getDeleteCallback()
Get the Mule MessageSource callback for Delete requests.
|
org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> |
getFetchCallback()
Get the Mule MessageSource callback for Fetch requests.
|
org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> |
getGetCallback()
Get the Mule MessageSource callback for Get requests.
|
org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> |
getIpatchCallback()
Get the Mule MessageSource callback for Ipatch requests.
|
org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> |
getPatchCallback()
Get the Mule MessageSource callback for Patch requests.
|
org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> |
getPostCallback()
Get the Mule MessageSource callback for Post requests.
|
org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> |
getPutCallback()
Get the Mule MessageSource callback for Put requests.
|
protected void |
handleRequest(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> callback,
org.eclipse.californium.core.server.resources.CoapExchange exchange,
CoapResponseCode defaultCoapResponseCode)
Generic handler for processing requests.
|
void |
setDeleteCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
set the Mule callback for this resource for Delete requests.
|
void |
setFetchCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
set the Mule callback for this resource for Fetch requests.
|
void |
setGetCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
set the Mule callback for this resource for Get requests.
|
void |
setIpatchCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
set the Mule callback for this resource for Ipatch requests.
|
void |
setPatchCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
set the Mule callback for this resource for Patch requests.
|
void |
setPostCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
set the Mule callback for this resource for Post requests.
|
void |
setPutCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
set the Mule callback for this resource for Put requests.
|
add, add, add, addObserver, addObserveRelation, changed, changed, checkObserveRelation, clearAndNotifyObserveRelations, clearAndNotifyObserveRelations, clearObserveRelations, delete, delete, execute, executeAndWait, getAttributes, getChild, getChildren, getExecutor, getName, getNotificationSequenceNumber, getObserverCount, getObserveType, getParent, getPath, getURI, handleDELETE, handleFETCH, handleGET, handleIPATCH, handlePATCH, handlePOST, handlePUT, handleRequest, isCachable, isObservable, isVisible, notifyObserverRelations, removeObserver, removeObserveRelation, setAttributes, setName, setObservable, setObserveType, setParent, setPath, setVisibleprotected static final org.slf4j.Marker ERROR_RESPONSE_MARKER
protected static final String NO_LISTENER_LOG_FORMAT
protected static final String CSV_REGEX
protected boolean earlyAck
public AbstractResource(String name, boolean visible)
name - The name of the resource.visible - Resource visibility to customers.protected void handleRequest(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> callback, org.eclipse.californium.core.server.resources.CoapExchange exchange, CoapResponseCode defaultCoapResponseCode)
callback - The callback of the Mule flow that will process the request.exchange - The CoAP exchange context of the request.defaultCoapResponseCode - The response code that will be used when the Mule flow hasn't set one.protected CoapRequestAttributesImpl createRequestAttributes(org.eclipse.californium.core.server.resources.CoapExchange coapExchange) throws InternalInvalidOptionValueException, InternalInvalidMessageTypeException, InternalInvalidRequestCodeException
coapExchange - InternalInvalidOptionValueException - When request options could not be interpreted.InternalInvalidMessageTypeException - When request type could not be interpreted.InternalInvalidRequestCodeException - When request code could not be interpreted.public void setGetCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
public org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> getGetCallback()
public void setPostCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
public org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> getPostCallback()
public void setPutCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
public org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> getPutCallback()
public void setDeleteCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
public org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> getDeleteCallback()
public void setFetchCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
public org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> getFetchCallback()
public void setPatchCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
public org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> getPatchCallback()
public void setIpatchCallback(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> sourceCallback)
public org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,CoapRequestAttributes> getIpatchCallback()
Copyright © 2019–2025 Teslanet.nl. All rights reserved.