|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttuwien.auto.calimero.knxnetip.servicetype.DescriptionRequest
public class DescriptionRequest
Represents a KNXnet/IP description request.
A request for self description is mainly used by a client after discovery of a new remote device endpoint. It is sent to the control endpoint of the server device. The counterpart to this request is the description response.
Objects of this type are immutable.
DescriptionResponse,
Discoverer| Constructor Summary | |
|---|---|
DescriptionRequest(byte[] data,
int offset)
Creates a description request out of a byte array. |
|
DescriptionRequest(HPAI ctrlEndpoint)
Creates a new description request with the given client control endpoint for a description response. |
|
DescriptionRequest(java.net.InetSocketAddress responseAddr)
Creates a new description request with the client address used for a description response. |
|
DescriptionRequest(int responsePort)
Convenience constructor to create a new description request using the UDP transport protocol and the system default local host with the supplied client port. |
|
| Method Summary | |
|---|---|
HPAI |
getEndpoint()
Returns the client control endpoint. |
byte[] |
toByteArray()
Returns the service type structure formatted into a byte array. |
java.lang.String |
toString()
Returns the service type name of this service type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DescriptionRequest(byte[] data,
int offset)
throws KNXFormatException
data - byte array containing a description request structureoffset - start offset of request in data
KNXFormatException - if no description request was found or invalid structurepublic DescriptionRequest(HPAI ctrlEndpoint)
ctrlEndpoint - client control endpoint used for responsepublic DescriptionRequest(java.net.InetSocketAddress responseAddr)
This request uses the UDP transport protocol.
responseAddr - address of client control endpoint used for response, use
null if NAT is used on the IP networkpublic DescriptionRequest(int responsePort)
responsePort - port number of the client control endpoint used for response, 0
<= port <= 0xFFFF| Method Detail |
|---|
public final HPAI getEndpoint()
public final byte[] toByteArray()
PacketHelperpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||