|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webdav.lib.WebdavSession
org.apache.webdav.lib.WebdavResource
org.apache.maven.wagon.providers.webdav.CorrectedWebdavResource
Corrected Webdav Resource. This extension to the WebdavResource object corrects a Content-Length bug in the WebdavLib.
| Field Summary |
| Fields inherited from class org.apache.webdav.lib.WebdavResource |
ALL, allowedMethods, BASIC, childResources, creationDate, CREATIONDATE, davCapabilities, DEFAULT, defaultAction, defaultDepth, defaultOwner, displayName, DISPLAYNAME, exists, FALSE, followRedirects, formats, GETCONTENTLANGUAGE, getContentLength, GETCONTENTLENGTH, getContentType, GETCONTENTTYPE, getEtag, GETETAG, getLastModified, GETLASTMODIFIED, gmtZone, httpURL, isCollection, ISCOLLECTION, isHidden, ISHIDDEN, LABEL_ADD, LABEL_REMOVE, LABEL_SET, latestStatusCode, latestStatusMessage, lockDiscovery, LOCKDISCOVERY, NAME, NOACTION, OPTIONS_VERSION_HISTORY, OPTIONS_WORKSPACE, overwrite, owner, resourceType, RESOURCETYPE, SOURCE, supportedLock, SUPPORTEDLOCK, tempDirForGet, thisResource, TRUE, useDiskForGet |
| Fields inherited from class org.apache.webdav.lib.WebdavSession |
client, debug, hostCredentials, proxyCredentials, proxyHost, proxyPort |
| Constructor Summary | |
CorrectedWebdavResource(HttpURL url)
|
|
| Method Summary | |
void |
addRequestHeader(String header,
String value)
Add a header in the request sent to the webdav server |
protected void |
generateAdditionalHeaders(HttpMethod method)
Add all additionals headers that have been previously registered with addRequestHeader to the method |
Map |
getHeaders()
|
InputStream |
getMethodData(String path)
Get InputStream for the GET method for the given path. |
boolean |
putMethod(String path,
InputStream inputStream,
int contentLength)
Execute the PUT method for the given path. |
void |
setHeaders(Map headers)
|
| Methods inherited from class org.apache.webdav.lib.WebdavResource |
abortTransaction, aclfindMethod, aclfindMethod, aclMethod, aclReportMethod, bindMethod, bindMethod, checkinMethod, checkinMethod, checkoutMethod, checkoutMethod, close, commitTransaction, compareTo, compareToWebdavResource, copyMethod, copyMethod, createWebdavResource, deleteMethod, deleteMethod, discoverLock, discoverOwnLocks, discoverOwnLocks, endTransaction, equals, executeHttpRequestMethod, exists, generateIfHeader, generateTransactionHeader, getActiveLockOwners, getAllowedMethods, getChildResources, getCreationDate, getDavCapabilities, getDefaultAction, getDefaultDepth, getDisplayName, getExistence, getFollowRedirects, getGetContentLength, getGetContentType, getGetEtag, getGetLastModified, getGetTempDir, getGetUseDisk, getHost, getHttpURL, getHttpURLExceptForUserInfo, getIsCollection, getIsHidden, getLockDiscovery, getMethod, getMethod, getMethodData, getMethodDataAsString, getMethodDataAsString, getName, getOverwrite, getOwner, getPath, getResourceType, getStatusCode, getStatusMessage, getSupportedLock, getTransactionHandle, headMethod, headMethod, isCollection, isLocked, isTheClient, labelMethod, labelMethod, list, listBasic, listWebdavResources, lockDiscoveryPropertyFindMethod, lockDiscoveryPropertyFindMethod, lockMethod, lockMethod, lockMethod, lockMethod, lockMethod, lockMethod, lockMethod, lockMethod, mkcolMethod, mkcolMethod, mkWorkspaceMethod, mkWorkspaceMethod, moveMethod, moveMethod, optionsMethod, optionsMethod, optionsMethod, optionsMethod, optionsMethod, optionsMethod, parseDate, pollMethod, pollMethod, principalCollectionSetFindMethod, principalCollectionSetFindMethod, processProperty, propfindMethod, propfindMethod, propfindMethod, propfindMethod, propfindMethod, propfindMethod, propfindMethod, propfindMethod, proppatchMethod, proppatchMethod, proppatchMethod, proppatchMethod, proppatchMethod, proppatchMethod, proppatchMethod, proppatchMethod, proppatchMethod, proppatchMethod, proppatchMethod, proppatchMethod, putMethod, putMethod, putMethod, putMethod, putMethod, putMethod, putMethod, putMethod, putMethod, putMethod, rebindMethod, rebindMethod, refresh, reportMethod, reportMethod, reportMethod, reportMethod, reportMethod, retrieveSessionInstance, setAllProp, setBasicProperties, setClient, setClient, setContentType, setCreationDate, setCreationDate, setDefaultAction, setDefaultDepth, setDefaultProperties, setDisplayName, setEncodeURLs, setExistence, setFollowRedirects, setGetContentLength, setGetContentLength, setGetContentType, setGetEtag, setGetLastModified, setGetLastModified, setGetTempDir, setGetUseDisk, setHttpURL, setHttpURL, setHttpURL, setHttpURL, setHttpURL, setHttpURL, setHttpURL, setIsCollection, setIsCollection, setIsHidden, setIsHidden, setLockDiscovery, setNamedProp, setNameProperties, setOverwrite, setPath, setProperties, setProperties, setResourceType, setStatusCode, setStatusCode, setSupportedLock, setUserInfo, setWebdavProperties, startTransaction, subscribeMethod, subscribeMethod, subscribeMethod, toString, unbindMethod, unbindMethod, uncheckoutMethod, uncheckoutMethod, unlockMethod, unlockMethod, unlockMethod, unsubscribeMethod, unsubscribeMethod, updateMethod, updateMethod, versionControlMethod, versionControlMethod |
| Methods inherited from class org.apache.webdav.lib.WebdavSession |
closeSession, closeSession, getSessionInstance, getSessionInstance, setCredentials, setDebug, setProxy, setProxyCredentials |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CorrectedWebdavResource(HttpURL url)
throws IOException
| Method Detail |
public void setHeaders(Map headers)
public Map getHeaders()
protected void generateAdditionalHeaders(HttpMethod method)
public InputStream getMethodData(String path)
throws IOException
path - the server relative path of the resource to get
IOException
public void addRequestHeader(String header,
String value)
header - Header namevalue - Value
public boolean putMethod(String path,
InputStream inputStream,
int contentLength)
throws IOException
path - the server relative path to put the datainputStream - The input stream.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||