Class DAVConnection
java.lang.Object
org.tmatesoft.svn.core.internal.io.dav.DAVConnection
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprivate Stringprotected Mapprotected IHTTPConnectionFactoryprivate IHTTPConnectionprotected booleanprivate booleanprotected booleanprivate HTTPStatusprotected longprotected Mapprotected Stringprivate SVNRepositoryprotected SVNURLprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionDAVConnection(IHTTPConnectionFactory connectionFactory, SVNRepository repository) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidvoidclose()doCheckout(String activityPath, String repositoryPath, String path, boolean allow404) voidvoiddoGet(String path, OutputStream os) voiddoGet(String path, String deltaBaseVersionURL, OutputStream os) doGetLock(String path, DAVRepository repos) SVNLock[]doGetLocks(String path) doLock(String repositoryPath, String path, DAVRepository repos, String comment, boolean force, long revision) doMakeActivity(ISVNWorkspaceMediator mediator) doMakeCollection(String path) doMerge(String activityURL, boolean response, DefaultHandler handler) doPropfind(String path, HTTPHeader header, StringBuffer body, DefaultHandler handler) voiddoProppatch(String repositoryPath, String path, StringBuffer requestBody, DefaultHandler handler, SVNErrorMessage context) doPutDiff(String repositoryPath, String path, InputStream data, long size, String baseChecksum, String textChecksum) doReport(String path, StringBuffer requestBody, DefaultHandler handler) doReport(String path, StringBuffer requestBody, DefaultHandler handler, boolean spool) voiddoUnlock(String path, DAVRepository repos, String id, boolean force) protected voidvoidfetchRepositoryRoot(DAVRepository repository) voidfetchRepositoryUUID(DAVRepository repository) private static Stringprivate StringgetActivityCollectionURL(String path, boolean force) getCapabilityResponse(SVNCapability capability) protected IHTTPConnectionprotected Stringprotected StringgetRelativePath(String origPath) protected SVNRepositorybooleanbooleanvoidopen(DAVRepository repository) private voidparseCapabilities(HTTPStatus status) private HTTPStatusperformHttpRequest(IHTTPConnection httpConnection, String method, String path, HTTPHeader header, byte[] body, int ok1, int ok2, OutputStream dst, DefaultHandler handler) private HTTPStatusperformHttpRequest(IHTTPConnection httpConnection, String method, String path, HTTPHeader headers, InputStream data, int ok1, int ok2, OutputStream dst, DefaultHandler handler) private HTTPStatusperformHttpRequest(IHTTPConnection httpConnection, String method, String path, HTTPHeader header, StringBuffer body, int ok1, int ok2, OutputStream dst, DefaultHandler handler) private HTTPStatusperformHttpRequest(IHTTPConnection httpConnection, String method, String src, HTTPHeader header, StringBuffer body, int ok1, int ok2, OutputStream dst, DefaultHandler handler, SVNErrorMessage context) voidsetCapability(SVNCapability capability, String capResult) voidvoidsetReportResponseSpooled(boolean spool) void
-
Field Details
-
DAV_CAPABILITY_YES
- See Also:
-
DAV_CAPABILITY_NO
- See Also:
-
DAV_CAPABILITY_SERVER_YES
- See Also:
-
myHttpConnection
-
myActivityCollectionURL
-
myRepository
-
myIsSpoolReport
private boolean myIsSpoolReport -
myKeepLocks
protected boolean myKeepLocks -
myLocks
-
myCapabilities
-
myHttpV2Enabled
protected boolean myHttpV2Enabled -
myMeResource
-
myRevStub
-
myRevRootStub
-
myTxnStub
-
myTxnRootStub
-
myVtxnStub
-
myVtxnRootStub
-
myUUID
-
myServerAllowsBulk
-
myLatestRevision
protected long myLatestRevision -
mySupportedPosts
-
myRepositoryRoot
-
myConnectionFactory
-
myLastStatus
-
-
Constructor Details
-
DAVConnection
-
-
Method Details
-
isReportResponseSpooled
public boolean isReportResponseSpooled() -
setReportResponseSpooled
public void setReportResponseSpooled(boolean spool) -
getLocation
-
getLastStatus
-
updateLocation
public void updateLocation() -
open
- Throws:
SVNException
-
fetchRepositoryRoot
- Throws:
SVNException
-
fetchRepositoryUUID
- Throws:
SVNException
-
doPropfind
public HTTPStatus doPropfind(String path, HTTPHeader header, StringBuffer body, DefaultHandler handler) throws SVNException - Throws:
SVNException
-
doOptions
- Throws:
SVNException
-
doGetLock
- Throws:
SVNException
-
doGetLocks
- Throws:
SVNException
-
doLock
public SVNLock doLock(String repositoryPath, String path, DAVRepository repos, String comment, boolean force, long revision) throws SVNException - Throws:
SVNException
-
doUnlock
public void doUnlock(String path, DAVRepository repos, String id, boolean force) throws SVNException - Throws:
SVNException
-
doGet
- Throws:
SVNException
-
doGet
- Throws:
SVNException
-
doReport
public HTTPStatus doReport(String path, StringBuffer requestBody, DefaultHandler handler) throws SVNException - Throws:
SVNException
-
doReport
public HTTPStatus doReport(String path, StringBuffer requestBody, DefaultHandler handler, boolean spool) throws SVNException - Throws:
SVNException
-
doProppatch
public void doProppatch(String repositoryPath, String path, StringBuffer requestBody, DefaultHandler handler, SVNErrorMessage context) throws SVNException - Throws:
SVNException
-
doMakeActivity
- Throws:
SVNException
-
doDelete
- Throws:
SVNException
-
doDelete
- Throws:
SVNException
-
doMakeCollection
- Throws:
SVNException
-
doPutDiff
public HTTPStatus doPutDiff(String repositoryPath, String path, InputStream data, long size, String baseChecksum, String textChecksum) throws SVNException - Throws:
SVNException
-
doMerge
public HTTPStatus doMerge(String activityURL, boolean response, DefaultHandler handler) throws SVNException - Throws:
SVNException
-
doCheckout
public HTTPStatus doCheckout(String activityPath, String repositoryPath, String path, boolean allow404) throws SVNException - Throws:
SVNException
-
doCopy
- Throws:
SVNException
-
doPost
- Throws:
SVNException
-
doHead
- Throws:
SVNException
-
close
public void close() -
setLocks
-
clearAuthenticationCache
public void clearAuthenticationCache() -
getCapabilityResponse
- Throws:
SVNException
-
setCapability
-
hasHttpV2Support
public boolean hasHttpV2Support() -
getMeResource
-
getSupportedPosts
-
getTxnStub
-
getTxnRootStub
-
getVtxnStub
-
getVtxnRootStub
-
getConnection
-
exchangeCapabilities
- Throws:
SVNException
-
getRepository
-
parseCapabilities
-
getRelativePath
-
getRelativePath
-
getActivityCollectionURL
- Throws:
SVNException
-
generateUUID
-
beforeCall
private void beforeCall() -
performHttpRequest
private HTTPStatus performHttpRequest(IHTTPConnection httpConnection, String method, String path, HTTPHeader header, byte[] body, int ok1, int ok2, OutputStream dst, DefaultHandler handler) throws SVNException - Throws:
SVNException
-
performHttpRequest
private HTTPStatus performHttpRequest(IHTTPConnection httpConnection, String method, String path, HTTPHeader header, StringBuffer body, int ok1, int ok2, OutputStream dst, DefaultHandler handler) throws SVNException - Throws:
SVNException
-
performHttpRequest
private HTTPStatus performHttpRequest(IHTTPConnection httpConnection, String method, String src, HTTPHeader header, StringBuffer body, int ok1, int ok2, OutputStream dst, DefaultHandler handler, SVNErrorMessage context) throws SVNException - Throws:
SVNException
-
performHttpRequest
private HTTPStatus performHttpRequest(IHTTPConnection httpConnection, String method, String path, HTTPHeader headers, InputStream data, int ok1, int ok2, OutputStream dst, DefaultHandler handler) throws SVNException - Throws:
SVNException
-