public class BlockwiseParams extends Object implements VisitableConfig
| Modifier and Type | Field and Description |
|---|---|
boolean |
entityTooLargeFailover
When activated CoAP client will try to use block mode or adapt
the block size when receiving a 4.13 Entity too large response code.
|
Integer |
maxMessageSize
The maximum payload size [bytes] that can be transferred in a single
message, i.e.
|
Integer |
maxResourceBodySize
The maximum size [bytes] of a resource body that will be accepted as the
payload of a POST/PUT or the response to a GET request in a
transparent blockwise transfer.
|
Integer |
preferredBlockSize
The block size [bytes] to use when doing a blockwise transfer.
|
String |
statusInterval
The interval in milliseconds [ms] for removing expired/stale blockwise entries.
|
String |
statusLifetime
The maximum amount of time in milliseconds [ms], allowed between transfers
of individual blocks in a blockwise transfer, before the blockwise transfer
state is discarded.
|
boolean |
strictBlock1Option
When activated the the Block1 option should be included in the error-responses.
|
boolean |
strictBlock2Option
When activated the Block2 option is also included when client requests early
blockwise negotiation but the response can be sent on one packet.
|
| Constructor and Description |
|---|
BlockwiseParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ConfigVisitor visitor)
Accept visitor.
|
boolean |
equals(Object obj) |
int |
hashCode() |
@Parameter @Optional(defaultValue="512") @Summary(value="The block size [bytes] to use when doing a blockwise transfer. This value serves as the upper limit for block size in blockwise transfers.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer preferredBlockSize
@Parameter @Optional(defaultValue="1024") @Summary(value="The maximum payload size [bytes] that can be transferred in a single message, i.e. without requiring a blockwise transfer. This value cannot exceed the network\'s MTU.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer maxMessageSize
@Parameter @Optional(defaultValue="8192") @Summary(value="The maximum size [bytes] of a resource body that will be accepted as the payload of a POST/PUT or the response to a GET request in a transparent blockwise transfer.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer maxResourceBodySize
@Parameter @Optional(defaultValue="5m") @Summary(value=" The maximum amount of time allowed between transfers of individual blocks in a blockwise transfer, before the blockwise transfer state is discarded.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public String statusLifetime
@Parameter @Optional(defaultValue="5s") @Summary(value="The interval for removing expired/stale blockwise entries.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public String statusInterval
@Parameter @Optional(defaultValue="false") @Summary(value="When activated the the Block1 option should be included in the error-responses.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public boolean strictBlock1Option
@Parameter @Optional(defaultValue="false") @Summary(value="When activated the Block2 option is also included when client requests early \nblockwise negotiation but the response can be sent on one packet.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public boolean strictBlock2Option
@Parameter @Optional(defaultValue="true") @Summary(value="When activated CoAP client will try to use block mode or adapt \nthe block size when receiving a 4.13 Entity too large response code.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public boolean entityTooLargeFailover
public void accept(ConfigVisitor visitor) throws ConfigException
accept in interface VisitableConfigvisitor - The visitor of the configuration object.ConfigException - When the visit was not successful.public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2019–2025 Teslanet.nl. All rights reserved.