de.fhg.igd.atlas.lsp
Class LSPList

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

public class LSPList
extends ASN1Integer

Represents a LSP_List 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 all modified entries since a specified time. If successful, the LSPReply message transports a LSPListResult structure. This class can be used by an adminisration GUI to represent the current state of the LSServer and LSProxy.

The ASN.1 structure of this request is as follows

 LSP_List  ::= Timestamp
 Timestamp ::= INTEGER
 
The timestamp represents the time in milliseconds since since January 1, 1970, 00:00:00 GMT.

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

Field Summary
 
Fields inherited from class codec.asn1.ASN1Integer
 
Fields inherited from class codec.asn1.ASN1AbstractType
 
Constructor Summary
LSPList()
          Creates an instance ready for decoding.
LSPList(long timestamp)
          Creates an instance with the given time.
 
Method Summary
static LSPList createRequest(byte[] code)
          Creates a new request from the given encoded request.
 byte[] getEncoded()
          Returns the DER encoded request.
 long getTimestamp()
          Returns the timestamp in milliseconds since January 1, 1970, 00:00:00 GMT.
 String toString()
          Returns the string representation of this request.
 
Methods inherited from class codec.asn1.ASN1Integer
decode, encode, getBigInteger, getTag, getValue, setBigInteger
 
Methods inherited from class codec.asn1.ASN1AbstractType
checkConstraints, getConstraint, getTagClass, isExplicit, isOptional, isType, setConstraint, setExplicit, setOptional
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LSPList

public LSPList()
Creates an instance ready for decoding.


LSPList

public LSPList(long timestamp)
Creates an instance with the given time. The timestamp represents the time in milliseconds since January 1, 1970, 00:00:00 GMT.

Parameters:
timestamp - The time in milliseconds.
Method Detail

createRequest

public static LSPList 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).

getTimestamp

public long getTimestamp()
Returns the timestamp in milliseconds since January 1, 1970, 00:00:00 GMT.

Returns:
The timestamp.

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.