public class AKConnect extends AbstractMessage implements Control
Constructor and Description |
---|
AKConnect(java.io.InputStream in)
An AKConnect message that populates its data from a stream.
|
AKConnect(int requestID,
int version,
java.lang.String agentName,
java.lang.String... requestedEntityTypes)
An AKConnect with particular version, requestID and requested entity types.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgentName()
Get the name of the agent making this request.
|
java.util.List<java.lang.String> |
getRequestedEntityTypes()
Get the requested entity types.
|
int |
getRequestID()
Get the request ID.
|
int |
getVersion()
Get the version number of this request.
|
addMessageComponent, getComponents, getURN, read, toString, write
public AKConnect(java.io.InputStream in) throws java.io.IOException
in
- The InputStream to read.java.io.IOException
- If there is a problem reading the stream.public AKConnect(int requestID, int version, java.lang.String agentName, java.lang.String... requestedEntityTypes)
requestID
- The request ID.version
- The version number.agentName
- The name of the agent.requestedEntityTypes
- The set of requested entity types.public int getVersion()
public int getRequestID()
public java.lang.String getAgentName()
public java.util.List<java.lang.String> getRequestedEntityTypes()