public class Envelope extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Envelope.GridFile
This class encapsulates all permisson and location information
for one file in the grid context, particularly the mapping
between the logical filename (lfn) and the physical filename
(transport URI, TURL) as well as the access permission granted
by the file catalogue.
|
| Modifier and Type | Field and Description |
|---|---|
static Map<String,org.dcache.xrootd.protocol.XrootdProtocol.FilePerm> |
filePermissions |
| Constructor and Description |
|---|
Envelope(String envelope)
Parses the envelope and verifies its validity.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getCreationDate()
Gets the creation time of the envelope formatted as Date
|
long |
getCreationTime()
Gets the creation time of the envelope
|
String |
getCreator()
Returns the name of the creator
|
Date |
getExpirationDate()
Returns the expiration time formatted as Date
|
long |
getExpirationTime()
Returns the experation time
|
List<Envelope.GridFile> |
getFiles()
Returns access to the list of specified files
|
boolean |
isValid()
Returns whether this envelope is valid or already expired
|
String |
toString() |
public Envelope(String envelope) throws CorruptedEnvelopeException, CredentialException
envelope - the envelope in plain text to be parsedCorruptedEnvelopeException - if parsing failsCredentialExceptionpublic long getCreationTime()
public Date getCreationDate()
public String getCreator()
public long getExpirationTime()
public Date getExpirationDate()
public boolean isValid()
public List<Envelope.GridFile> getFiles()
Copyright © 2016. All rights reserved.