public class CoapResponseAttributes extends Attributes
| Modifier and Type | Field and Description |
|---|---|
protected String |
locationUri
The uri of the resource that has been created.
|
protected boolean |
notification
True when response is a notification.
|
protected String |
responseCode
The CoAP response code of the server response.
|
protected ResponseOptionsAttributes |
responseOptions
The CoAP options that accompanied the response.
|
protected String |
responseType
The CoAP response type of the server response.
|
protected Result |
result
True when response is received and indicates success.
|
localAddress, remoteAddress, requestCode, requestOptions, requestType, requestUri| Constructor and Description |
|---|
CoapResponseAttributes() |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocationUri()
The location of a created resource.
|
String |
getResponseCode() |
ResponseOptionsAttributes |
getResponseOptions() |
String |
getResponseType() |
Result |
getResult() |
boolean |
isClientError() |
boolean |
isNoResponse() |
boolean |
isNotification() |
boolean |
isServerError() |
boolean |
isSuccess() |
getLocalAddress, getRemoteAddress, getRequestCode, getRequestHost, getRequestOptions, getRequestPath, getRequestPort, getRequestQuery, getRequestScheme, getRequestType, getRequestUriprotected Result result
protected String responseType
protected String responseCode
protected boolean notification
protected String locationUri
protected ResponseOptionsAttributes responseOptions
public Result getResult()
public boolean isNoResponse()
public boolean isClientError()
public boolean isServerError()
public boolean isSuccess()
public boolean isNotification()
public String getResponseType()
public String getResponseCode()
public String getLocationUri()
public ResponseOptionsAttributes getResponseOptions()
Copyright © 2019–2024 Teslanet.nl. All rights reserved.