|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceHandler
Resource handler for interace that all implementations must provide. Subversion is the first implementation of this interface. The interface may need to be changed/extended to accomodate advanced line items, like resource locking/deployment.
| Method Summary | |
|---|---|
boolean |
authenticate(String url)
Authenticate the user based on his/her credentials, typically a username/password combo. |
ByteArrayOutputStream |
getResourceStream(RepositoryBean aRepositoryBean)
Get the URL contents. |
String |
getResourceURL(RepositoryBean aRepositoryBean)
Get the latest version of the resource from the repository if no version is specified. |
void |
setCredentials(String username,
String password)
Set the credentials for the resource handler calls. |
void |
setRepositoryUrl(String url)
|
| Method Detail |
|---|
ByteArrayOutputStream getResourceStream(RepositoryBean aRepositoryBean) throws ResourceUrlNotFoundException, ResourceTypeNotSupportedException, ResourceAccessDeniedException
aRepositoryBean -
ResourceUrlNotFoundException
ResourceTypeNotSupportedException
ResourceAccessDeniedExceptionString getResourceURL(RepositoryBean aRepositoryBean) throws ResourceTypeNotSupportedException
aRepositoryBean -
ResourceTypeNotSupportedExceptionboolean authenticate(String url)
url -
void setCredentials(String username, String password)
username - password - void setRepositoryUrl(String url)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||