|
Drools :: Eclipse :: Guvnor tools 6.1.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.guvnor.tools.utils.webdav.WebDavClient
public class WebDavClient
WebDav wrapper client.
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setSessionAuthenticator(IAuthenticator sessionAuthen)
IWebDavClient
setSessionAuthenticator in interface IWebDavClientsessionAuthen - The authenticatorpublic RemoteDAVClient getClient()
IWebDavClient
getClient in interface IWebDavClientpublic IContext createContext()
IWebDavClient
createContext in interface IWebDavClient
public Map<String,ResourceProperties> listDirectory(String path)
throws Exception
IWebDavClient
listDirectory in interface IWebDavClientpath - The directory (collection) to list
Exception - Various WebDav errors can occur (See IResponse for details)
public ResourceProperties queryProperties(String resource)
throws Exception
IWebDavClient
queryProperties in interface IWebDavClientresource - The resource to get properties for
Exception - Various WebDav errors can occur (See IResponse for details)
public String getResourceContents(String resource)
throws Exception
IWebDavClient
getResourceContents in interface IWebDavClientresource - The address of the resource
Exception - Various WebDav errors can occur (See IResponse for details)
public String getResourceVersionContents(String resource,
String version)
throws Exception
IWebDavClient
getResourceVersionContents in interface IWebDavClientresource - The address of the resourceversion - The version number of the resource
Exception - Various WebDav errors can occur (See IResponse for details)
public IResponse getResourceInputStream(String resource)
throws Exception
IWebDavClientInputStream of a resource from Guvnor through WebDav.
getResourceInputStream in interface IWebDavClientresource - The address of the resource
IResponse object, which the client must close
Exception - Various WebDav errors can occur (See IResponse for details)
public IResponse getResourceVersionInputStream(String resource,
String version)
throws Exception
IWebDavClientInputStream for a specific version of a resource from Guvnor through WebDav.
getResourceVersionInputStream in interface IWebDavClientresource - 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)
public boolean createResource(String resource,
InputStream is)
throws Exception
IWebDavClient
createResource in interface IWebDavClientException
public boolean createResource(String resource,
InputStream is,
boolean overwrite)
throws Exception
IWebDavClient
createResource in interface IWebDavClientresource - 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)
public void putResource(String resource,
InputStream is)
throws Exception
IWebDavClient
putResource in interface IWebDavClientresource - The path and name of the resourceis - A stream to the file contents
Exception - Various WebDav errors can occur (See IResponse for details)
public IResponse getResourceVersions(String resource)
throws Exception
IWebDavClient
getResourceVersions in interface IWebDavClientresource - The file to get version information about
IResponse object, which the client must close
Exception - Various WebDav errors can occur (See IResponse for details)
public void deleteResource(String resource)
throws Exception
IWebDavClient
deleteResource in interface IWebDavClientresource - The resource to delete
Exception - Various WebDav errors can occur (See IResponse for details)
|
Drools :: Eclipse :: Guvnor tools 6.1.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||