issrg.pba.rbac
Class WebDAVURLHandler

java.lang.Object
  extended by issrg.pba.rbac.URLHandler
      extended by issrg.pba.rbac.WebDAVURLHandler

public class WebDAVURLHandler
extends URLHandler

This class handles WebDAV URL's, with SSL client authentication details.

Version:
13/03/2007
Author:
Sean Antony

Field Summary
 
Fields inherited from class issrg.pba.rbac.URLHandler
defaultPort, FILE_PORT, FILE_PROTOCOL, HTTP_PORT, HTTP_PROTOCOL, HTTPS_PORT, HTTPS_PROTOCOL, VOMS_SAML_PROTOCOL
 
Constructor Summary
WebDAVURLHandler(int defaultPort, java.lang.String protocolIn)
           
 
Method Summary
 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.
 
Methods inherited from class issrg.pba.rbac.URLHandler
addProtocol, getDefaultPort, getEntry, getEntryByURL, getPrincipal, getPrincipalByURL, getProtocolName, getRepositoryByURL, getSubtree, getSubtreeByURL, getURLHandler, removeProtocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDAVURLHandler

public WebDAVURLHandler(int defaultPort,
                        java.lang.String protocolIn)
Method Detail

getRepository

public AttributeRepository getRepository(java.lang.String url)
                                  throws BadURLException
Description copied from class: URLHandler
This method returns an instance of a repository that would be able to retrieve attributes given the URL. Some Repositories may use only the host part of the URL to connect to the server, ignoring the path part.

In this version of the URLHandler, no HTTP/HTTPS repositories are implemented, so null is returned for such URLs.

Overrides:
getRepository in class URLHandler
Parameters:
url - - the URL of the repository
Returns:
the AttributeRepository
Throws:
BadURLException

getProtocol

public java.lang.String getProtocol()
Description copied from class: URLHandler
This method returns the string name of the protocol (without the trailing colon). The protocol is in lowercase letters.

Overrides:
getProtocol in class URLHandler
Returns:
string name of the protocol in lowercase characters