de.fhg.igd.atlas.lsp
Class LSPProxyInvalidate

java.lang.Object
  extended bycodec.asn1.ASN1AbstractType
      extended bycodec.asn1.ASN1OctetString
          extended byde.fhg.igd.atlas.lsp.LSPProxyInvalidate
All Implemented Interfaces:
ASN1Type, Cloneable

public class LSPProxyInvalidate
extends ASN1OctetString

Represents a LSP_ProxyInvalidate structure of the Location Service Protocol (LSP). Encapsulated in a LSPRequest it is sent to the Location Service Proxy (LSProxy) to invalidate an existing entry with the given implicit name. If successful, the LSPReply message has the reply state ACKNOWLEDGE. This class is used by the Location Server Client (LSClient) to inform the LSProxy of mobile objects, which leave the current LAN.

The ASN.1 structure of this request is as follows

 LSP_ProxyInvalidate ::= ImplicitName
 ImplicitName        ::= OCTET STRING
 
The implicit name is the unique identifier of an mobile object for instance the hashcode of its static part.

Version:
"$Id: LSPProxyInvalidate.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Jan Peters
See Also:
LSPRequest, LSPReply

Field Summary
 
Fields inherited from class codec.asn1.ASN1OctetString
 
Fields inherited from class codec.asn1.ASN1AbstractType
 
Constructor Summary
LSPProxyInvalidate()
          Creates an instance ready for decoding.
LSPProxyInvalidate(byte[] implicitName)
          Creates an instance with the given implicit name.
 
Method Summary
static LSPProxyInvalidate 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

LSPProxyInvalidate

public LSPProxyInvalidate()
Creates an instance ready for decoding.


LSPProxyInvalidate

public LSPProxyInvalidate(byte[] implicitName)
Creates an instance with the given implicit name.

Parameters:
implicitName - The implicit name.
Method Detail

createRequest

public static LSPProxyInvalidate createRequest(byte[] code)
                                        throws CorruptedCodeException,
                                               IllegalStateException,
                                               NullPointerException
Creates a new request from the given encoded request.

Parameters:
code - The encoded request.
Returns:
The decoded request.
Throws:
CorruptedCodeException - if the code is bad.
IllegalStateException - if an error occurs while decoding with DERDecoder (RuntimeException).
NullPointerException - if code is null (RuntimeException).

getImplicitName

public byte[] getImplicitName()
Returns the implicit name.

Returns:
The implicit name.

getEncoded

public byte[] getEncoded()
                  throws IllegalStateException
Returns the DER encoded request.

Returns:
The encoded request.
Throws:
IllegalStateException - if an exception occures during ASN1 encoding (RuntimeException).

toString

public String toString()
Returns the string representation of this request. This is done in following manner
 ASN1StructureName {
 Property  : Value
 }
 

Returns:
The string representation.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.