Class DAVConnection
java.lang.Object
org.tmatesoft.svn.core.internal.io.dav.DAVConnection
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
private String
protected Map
protected IHTTPConnectionFactory
private IHTTPConnection
protected boolean
private boolean
protected boolean
private HTTPStatus
protected long
protected Map
protected String
private SVNRepository
protected SVNURL
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionDAVConnection
(IHTTPConnectionFactory connectionFactory, SVNRepository repository) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
void
close()
doCheckout
(String activityPath, String repositoryPath, String path, boolean allow404) void
void
doGet
(String path, OutputStream os) void
doGet
(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) void
doProppatch
(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) void
doUnlock
(String path, DAVRepository repos, String id, boolean force) protected void
void
fetchRepositoryRoot
(DAVRepository repository) void
fetchRepositoryUUID
(DAVRepository repository) private static String
private String
getActivityCollectionURL
(String path, boolean force) getCapabilityResponse
(SVNCapability capability) protected IHTTPConnection
protected String
protected String
getRelativePath
(String origPath) protected SVNRepository
boolean
boolean
void
open
(DAVRepository repository) private void
parseCapabilities
(HTTPStatus status) private HTTPStatus
performHttpRequest
(IHTTPConnection httpConnection, String method, String path, HTTPHeader header, byte[] body, int ok1, int ok2, OutputStream dst, DefaultHandler handler) private HTTPStatus
performHttpRequest
(IHTTPConnection httpConnection, String method, String path, HTTPHeader headers, InputStream data, int ok1, int ok2, OutputStream dst, DefaultHandler handler) private HTTPStatus
performHttpRequest
(IHTTPConnection httpConnection, String method, String path, HTTPHeader header, StringBuffer body, int ok1, int ok2, OutputStream dst, DefaultHandler handler) private HTTPStatus
performHttpRequest
(IHTTPConnection httpConnection, String method, String src, HTTPHeader header, StringBuffer body, int ok1, int ok2, OutputStream dst, DefaultHandler handler, SVNErrorMessage context) void
setCapability
(SVNCapability capability, String capResult) void
void
setReportResponseSpooled
(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
-