|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.URLHandler issrg.test.pmi.PMITest.XMLURLHandler
public static class PMITest.XMLURLHandler
This URLHandler constructs PMIXMLRepository given a xml: URL. It does not construct anything else, a BadURLException is thrown in all other methods
Field Summary |
---|
Fields inherited from class issrg.pba.rbac.URLHandler |
---|
defaultPort, FILE_PORT, FILE_PROTOCOL, HTTP_PORT, HTTP_PROTOCOL, HTTPS_PORT, HTTPS_PROTOCOL, protocol, VOMS_SAML_PROTOCOL |
Constructor Summary | |
---|---|
protected |
PMITest.XMLURLHandler()
|
Method Summary | |
---|---|
Entry |
getEntry(java.lang.String url)
This method returns an Entry identified by a given HTTP URL. |
java.security.Principal |
getPrincipal(java.lang.String url)
This method returns a Principal for a given HTTP URL string. |
java.lang.String |
getProtocol()
This method returns the string name of the protocol (without the trailing colon). |
AttributeRepository |
getRepository(java.lang.String url)
This method returns an instance of a repository that would be able to retrieve attributes given the URL. |
Subtree |
getSubtree(java.lang.String url,
int min,
int max,
Subtree[] exclude)
This method returns a Subtree specified using a Base Entry URL and Min and Max level specifications. |
Methods inherited from class issrg.pba.rbac.URLHandler |
---|
addProtocol, getDefaultPort, getEntryByURL, getPrincipalByURL, getProtocolName, getRepositoryByURL, getSubtreeByURL, getURLHandler, removeProtocol |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PMITest.XMLURLHandler()
Method Detail |
---|
public java.lang.String getProtocol()
URLHandler
getProtocol
in class URLHandler
public java.security.Principal getPrincipal(java.lang.String url) throws BadURLException
URLHandler
getPrincipal
in class URLHandler
url
- the string representation of the HTTP URL (including the
protocol name part)
(the actual protocol name is checked with the string returned by
getProtocol,
but the format of the rest of the URL is as specified in HTTP RFC)
BadURLException
- if the URL is malformedpublic Entry getEntry(java.lang.String url) throws BadURLException
URLHandler
This URLHandler does (Entry)getPrincipal(url) - so if your Principal implements the Entry interface, you can leave the getEntry method.
getEntry
in class URLHandler
url
- the string representation of the HTTP URL (see comments for
getPrincipal method)
BadURLException
- if the URL is malformedpublic Subtree getSubtree(java.lang.String url, int min, int max, Subtree[] exclude) throws BadURLException
URLHandler
getSubtree
in class URLHandler
url
- the URL of the Base Entry; port may be specified as a range of
ports by using nn-mm notation (two numbers separated by hyphen);
if no port is specified, any port matches the subtree specificationmin
- the Min value for the subtreemax
- the Max value for the subtree
BadURLException
- if the URL is malformedSubtree
public AttributeRepository getRepository(java.lang.String url) throws BadURLException
URLHandler
In this version of the URLHandler, no HTTP/HTTPS repositories are implemented, so null is returned for such URLs.
getRepository
in class URLHandler
url
- - the URL of the repository
BadURLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |