|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.resource.BaseResourceHandler
org.drools.resource.SvnResourceHandler
public class SvnResourceHandler
Resource Handler implementation for subversion. Assumes that there is an HTTP accessible subversion repository with the following structure: Base URL - Example: http://localhost/svn/resource-handler Subfolders off the base URL: /drls /dsls /functions /rules /spreadsheets Security can be enabled and if it's enabled, you will need to have appropriate credentials to access any URL resource.
| Field Summary |
|---|
| Fields inherited from class org.drools.resource.BaseResourceHandler |
|---|
repositoryUrl |
| Constructor Summary | |
|---|---|
SvnResourceHandler()
|
|
| Method Summary | |
|---|---|
boolean |
authenticate(String url)
Authenticate the user based on his/her credentials, typically a username/password combo. |
String |
getPassword()
|
String |
getRepositoryUrl()
|
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. |
String |
getUsername()
|
void |
setCredentials(String username,
String password)
Set the credentials for the resource handler calls. |
void |
setPassword(String password)
|
void |
setRepositoryUrl(String url)
|
void |
setUsername(String username)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SvnResourceHandler()
| Method Detail |
|---|
public boolean authenticate(String url)
ResourceHandler
authenticate in interface ResourceHandlerpublic void setCredentials(String username, String password)
ResourceHandler
setCredentials in interface ResourceHandlerpublic ByteArrayOutputStream getResourceStream(RepositoryBean aRepositoryBean) throws ResourceUrlNotFoundException, ResourceTypeNotSupportedException, ResourceAccessDeniedException
ResourceHandler
getResourceStream in interface ResourceHandlerpublic String getResourceURL(RepositoryBean aRepositoryBean) throws ResourceTypeNotSupportedException
ResourceHandler
getResourceURL in interface ResourceHandlerResourceTypeNotSupportedExceptionpublic String getPassword()
public void setPassword(String password)
public String getUsername()
public void setUsername(String username)
public void setRepositoryUrl(String url)
setRepositoryUrl in interface ResourceHandlerpublic String getRepositoryUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||