|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcodec.asn1.ASN1AbstractType
codec.asn1.ASN1OctetString
de.fhg.igd.atlas.lsp.LSPLookup
Represents a LSP_Lookup structure of the Location Service
Protocol (LSP).
Encapsulated in a LSPRequest
it is sent to the Location
Service Server (LSServer
)
or the Location Service Proxy
(LSProxy
) to request the
contact address to a given implicit name. If successful, the
LSPReply
message transports a LSPLookupResult
.
This class is used by the Location Server Client
(LSClient
).
The ASN.1 structure of this request is as follows
The implicit name is the unique identifier of an mobile object for instance the hashcode of its static part.LSP_Lookup ::= ImplicitName ImplicitName ::= OCTET STRING
LSPLookupResult
,
LSPRequest
,
LSPReply
Field Summary |
Fields inherited from class codec.asn1.ASN1OctetString |
|
Fields inherited from class codec.asn1.ASN1AbstractType |
|
Constructor Summary | |
LSPLookup()
Creates an instance ready for decoding. |
|
LSPLookup(byte[] implicitName)
Creates an instance with the given implicit name. |
Method Summary | |
static LSPLookup |
createRequest(byte[] code)
Creates a new request from the given encoded request. |
byte[] |
getEncoded()
Returns the DER encoded request. |
byte[] |
getImplicitName()
Returns the implicit name. |
String |
toString()
Returns the string representation of this request. |
Methods inherited from class codec.asn1.ASN1OctetString |
byteCount, clone, decode, encode, getByteArray, getTag, getValue, setByteArray |
Methods inherited from class codec.asn1.ASN1AbstractType |
checkConstraints, getConstraint, getTagClass, isExplicit, isOptional, isType, setConstraint, setExplicit, setOptional |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LSPLookup()
public LSPLookup(byte[] implicitName)
implicitName
- The implicit name.Method Detail |
public static LSPLookup createRequest(byte[] code) throws CorruptedCodeException, IllegalStateException, NullPointerException
code
- The encoded request.
CorruptedCodeException
- if the code is bad.
IllegalStateException
- if an error occurs
while decoding with DERDecoder
(RuntimeException).
NullPointerException
- if code
is null
(RuntimeException).public byte[] getImplicitName()
public byte[] getEncoded() throws IllegalStateException
IllegalStateException
- if an exception occures
during ASN1 encoding (RuntimeException).public String toString()
ASN1StructureName { Property : Value }
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |