|
Drools :: Eclipse :: Guvnor tools 6.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IWebDavClient
Client methods for interacting with Guvnor through WebDav.
| Method Summary | |
|---|---|
IContext |
createContext()
Convenience method for creating a request IContext. |
boolean |
createResource(String resource,
InputStream is)
Same as createResource(resource, is, true) |
boolean |
createResource(String resource,
InputStream is,
boolean overwrite)
Creates a file in Guvnor through WebDav. |
void |
deleteResource(String resource)
Deletes a resource in the repository. |
RemoteDAVClient |
getClient()
Provides access to the underlying RemoteDAVClient. |
String |
getResourceContents(String resource)
Get the contents of a resource from Guvnor through WebDav. |
IResponse |
getResourceInputStream(String resource)
Get the InputStream of a resource from Guvnor through WebDav. |
String |
getResourceVersionContents(String resource,
String version)
Get the contents for a specific version of a resource from a Guvnor repository. |
IResponse |
getResourceVersionInputStream(String resource,
String version)
Get the InputStream for a specific version of a resource from Guvnor through WebDav. |
IResponse |
getResourceVersions(String resource)
Gets all the version information for a resource |
Map<String,ResourceProperties> |
listDirectory(String path)
Lists a directory (collection) in Guvnor through WebDav. |
void |
putResource(String resource,
InputStream is)
Write a file to Guvnor through WebDav. |
ResourceProperties |
queryProperties(String resource)
Queries the server for properties of a given resource. |
void |
setSessionAuthenticator(IAuthenticator sessionAuthen)
Tell the client to use the supplied authenticator, instead of one tied to the platform key ring. |
| Method Detail |
|---|
void setSessionAuthenticator(IAuthenticator sessionAuthen)
sessionAuthen - The authenticatorRemoteDAVClient getClient()
IContext createContext()
Map<String,ResourceProperties> listDirectory(String path)
throws Exception
path - The directory (collection) to list
Exception - Various WebDav errors can occur (See IResponse for details)
ResourceProperties queryProperties(String resource)
throws Exception
resource - The resource to get properties for
Exception - Various WebDav errors can occur (See IResponse for details)
String getResourceContents(String resource)
throws Exception
resource - The address of the resource
Exception - Various WebDav errors can occur (See IResponse for details)
String getResourceVersionContents(String resource,
String version)
throws Exception
resource - The address of the resourceversion - The version number of the resource
Exception - Various WebDav errors can occur (See IResponse for details)
IResponse getResourceInputStream(String resource)
throws Exception
InputStream of a resource from Guvnor through WebDav.
resource - The address of the resource
IResponse object, which the client must close
Exception - Various WebDav errors can occur (See IResponse for details)
IResponse getResourceVersionInputStream(String resource,
String version)
throws Exception
InputStream for a specific version of a resource from Guvnor through WebDav.
resource - The address of the resourceversion - The version number of the resource
IResponse object, which the client must close
Exception - Various WebDav errors can occur (See IResponse for details)
boolean createResource(String resource,
InputStream is)
throws Exception
Exception
boolean createResource(String resource,
InputStream is,
boolean overwrite)
throws Exception
resource - The path and name of the resourceis - A stream to the file contentsoverwrite - Whether to overwrite the file if it already exists
Exception - Various WebDav errors can occur (See IResponse for details)
void putResource(String resource,
InputStream is)
throws Exception
resource - The path and name of the resourceis - A stream to the file contents
Exception - Various WebDav errors can occur (See IResponse for details)
IResponse getResourceVersions(String resource)
throws Exception
resource - The file to get version information about
IResponse object, which the client must close
Exception - Various WebDav errors can occur (See IResponse for details)
void deleteResource(String resource)
throws Exception
resource - The resource to delete
Exception - Various WebDav errors can occur (See IResponse for details)
|
Drools :: Eclipse :: Guvnor tools 6.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||