| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
codec.asn1.ASN1AbstractCollection
codec.asn1.ASN1Sequence
de.fhg.igd.atlas.lsp.LSPEntry
Represents a LSP_Entry structure of the Location Service
 Protocol (LSP).
 It contains all infomation stored in a Location Service Server
 (LSServer) used to locate
 the identified mobile object. There exists a mapping between this class
 and StorageDBEntry respectivley
 StorageDBImmutableEntry.
The ASN.1 structure of this entry is as follows
 LSP_Entry ::= SEQUENCE
 {
   implicitName     ImplicitName,
   contactaddress   ContactAddress,
   cookie           Cookie,
   timestamp        Timestamp
 }
 
 ImplicitName   ::= OCTET STRING
 ContactAddress ::= OCTET STRING
 Cookie         ::= OCTET STRING
 Timestamp      ::= INTEGER
 
LSServerService, 
StorageDBEntry, 
StorageDBImmutableEntry, 
Serialized Form| Nested Class Summary | 
| Nested classes inherited from class java.util.AbstractList | 
|  | 
| Field Summary | |
| protected  ASN1OctetString | contactAddress_The contact address of this entry. | 
| protected  ASN1OctetString | cookie_The cookie of this entry. | 
| protected  ASN1OctetString | implicitName_The implicit name of this entry. | 
| protected  ASN1Integer | timestamp_The timestamp of this entry. | 
| Fields inherited from class codec.asn1.ASN1AbstractCollection | 
|  | 
| Fields inherited from class java.util.ArrayList | 
|  | 
| Fields inherited from class java.util.AbstractList | 
| modCount | 
| Constructor Summary | |
| LSPEntry()Creates an instance ready for decoding. | |
| LSPEntry(byte[] implicitName,
         URL contactAddress,
         byte[] cookie,
         long timestamp)Creates an instance with the given parameters. | |
| LSPEntry(StorageDBEntry entry)Creates an instance from the given entry. | |
| LSPEntry(StorageDBImmutableEntry entry)Creates an instance from the given entry. | |
| Method Summary | |
| static LSPEntry | createEntry(byte[] code)Creates a new entry from the given encoded entry. | 
|  URL | getContactAddress()Returns the contact address or an empty URL, if the encoded contact address is not well-formed. | 
|  byte[] | getCookie()Returns the cookie. | 
|  byte[] | getEncoded()Returns the DER encoded entry. | 
|  byte[] | getImplicitName()Returns the implicit name. | 
|  long | getTimestamp()Returns the timestamp in milliseconds since January 1, 1970, 00:00:00 GMT. | 
|  String | toString()Returns the string representation of this entry. | 
| Methods inherited from class codec.asn1.ASN1Sequence | 
| getTag | 
| Methods inherited from class codec.asn1.ASN1AbstractCollection | 
| checkConstraints, decode, encode, getCollection, getConstraint, getTagClass, getValue, isExplicit, isOptional, isType, setConstraint, setExplicit, setOptional | 
| Methods inherited from class java.util.ArrayList | 
| add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize | 
| Methods inherited from class java.util.AbstractList | 
| equals, hashCode, iterator, listIterator, listIterator, subList | 
| Methods inherited from class java.util.AbstractCollection | 
| containsAll, remove, removeAll, retainAll | 
| Methods inherited from class java.lang.Object | 
| finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface java.util.Collection | 
| add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray | 
| Methods inherited from interface java.util.List | 
| containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList | 
| Field Detail | 
protected ASN1OctetString implicitName_
protected ASN1OctetString contactAddress_
protected ASN1OctetString cookie_
protected ASN1Integer timestamp_
| Constructor Detail | 
public LSPEntry()
public LSPEntry(StorageDBEntry entry)
         throws NullPointerException
entry - The entry.
NullPointerException - if entry
   is null (RuntimeException).
public LSPEntry(StorageDBImmutableEntry entry)
         throws NullPointerException
entry - The entry.
NullPointerException - if entry
   is null (RuntimeException).
public LSPEntry(byte[] implicitName,
                URL contactAddress,
                byte[] cookie,
                long timestamp)
implicitName - The implicit name of the entry.contactAddress - The contact address of the entry.cookie - The cookie of the entry.timestamp - The timestamp of the entry.| Method Detail | 
public static LSPEntry createEntry(byte[] code)
                            throws CorruptedCodeException,
                                   IllegalStateException,
                                   NullPointerException
code - The encoded entry.
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 URL getContactAddress()
public byte[] getCookie()
public long getTimestamp()
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 | |||||||||