|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.data.common.helpers.Stripper
Class for stripping and regularising LFNs and GUIDs.
Constructor Summary | |
Stripper()
|
Method Summary | |
static java.lang.String |
regulariseClientDN(java.lang.String clientDN)
Regularise a ClientDN. |
static java.lang.String |
regulariseGUID(java.lang.String guidin,
boolean validate)
Regularise a GUID. |
static java.lang.String |
regulariseLFN(java.lang.String lfn)
LFN output must be of form "/path/path/filename" Allowable input forms are: /path/path/filename, //path/path/filename, etc lfn:/path/path/filename lfn://path/path/filename, lfn:///path/path/filename, etc In general: all multiple /'s are changed to a single "/"; the prefix "lfn:" is removed; "/./" is resolved to "/"; "path1/path2/../" is resolved to "path1/"; the trailing "/" is always removed if it exists. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Stripper()
Method Detail |
public static java.lang.String regulariseLFN(java.lang.String lfn) throws java.lang.IllegalArgumentException
lfn
-
java.lang.IllegalArgumentException
- in case of malformed LFNpublic static java.lang.String regulariseGUID(java.lang.String guidin, boolean validate) throws java.lang.IllegalArgumentException
guidin
- - the GUID to regularisevalidate
- if true, the GUID is validated using Jug.
java.lang.IllegalArgumentException
- if the GUID was badpublic static java.lang.String regulariseClientDN(java.lang.String clientDN) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the GUID was bad
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |