Class DAVConnection

java.lang.Object
org.tmatesoft.svn.core.internal.io.dav.DAVConnection

public class DAVConnection extends java.lang.Object
Version:
1.3
  • Field Details

    • DAV_CAPABILITY_YES

      protected static final java.lang.String DAV_CAPABILITY_YES
      See Also:
    • DAV_CAPABILITY_NO

      protected static final java.lang.String DAV_CAPABILITY_NO
      See Also:
    • DAV_CAPABILITY_SERVER_YES

      protected static final java.lang.String DAV_CAPABILITY_SERVER_YES
      See Also:
    • myHttpConnection

      private IHTTPConnection myHttpConnection
    • myActivityCollectionURL

      private java.lang.String myActivityCollectionURL
    • myRepository

      private SVNRepository myRepository
    • myIsSpoolReport

      private boolean myIsSpoolReport
    • myKeepLocks

      protected boolean myKeepLocks
    • myLocks

      protected java.util.Map myLocks
    • myCapabilities

      protected java.util.Map myCapabilities
    • myHttpV2Enabled

      protected boolean myHttpV2Enabled
    • myMeResource

      protected java.lang.String myMeResource
    • myRevStub

      protected java.lang.String myRevStub
    • myRevRootStub

      protected java.lang.String myRevRootStub
    • myTxnStub

      protected java.lang.String myTxnStub
    • myTxnRootStub

      protected java.lang.String myTxnRootStub
    • myVtxnStub

      protected java.lang.String myVtxnStub
    • myVtxnRootStub

      protected java.lang.String myVtxnRootStub
    • myUUID

      protected java.lang.String myUUID
    • myServerAllowsBulk

      protected java.lang.String myServerAllowsBulk
    • myLatestRevision

      protected long myLatestRevision
    • mySupportedPosts

      protected java.util.List<java.lang.String> mySupportedPosts
    • myRepositoryRoot

      protected SVNURL myRepositoryRoot
    • myConnectionFactory

      protected IHTTPConnectionFactory myConnectionFactory
    • myLastStatus

      private HTTPStatus myLastStatus
  • Constructor Details

  • Method Details

    • isReportResponseSpooled

      public boolean isReportResponseSpooled()
    • setReportResponseSpooled

      public void setReportResponseSpooled(boolean spool)
    • getLocation

      public SVNURL getLocation()
    • getLastStatus

      public HTTPStatus getLastStatus()
    • updateLocation

      public void updateLocation()
    • open

      public void open(DAVRepository repository) throws SVNException
      Throws:
      SVNException
    • fetchRepositoryRoot

      public void fetchRepositoryRoot(DAVRepository repository) throws SVNException
      Throws:
      SVNException
    • fetchRepositoryUUID

      public void fetchRepositoryUUID(DAVRepository repository) throws SVNException
      Throws:
      SVNException
    • doPropfind

      public HTTPStatus doPropfind(java.lang.String path, HTTPHeader header, java.lang.StringBuffer body, org.xml.sax.helpers.DefaultHandler handler) throws SVNException
      Throws:
      SVNException
    • doOptions

      public HTTPStatus doOptions(java.lang.String path) throws SVNException
      Throws:
      SVNException
    • doGetLock

      public SVNLock doGetLock(java.lang.String path, DAVRepository repos) throws SVNException
      Throws:
      SVNException
    • doGetLocks

      public SVNLock[] doGetLocks(java.lang.String path) throws SVNException
      Throws:
      SVNException
    • doLock

      public SVNLock doLock(java.lang.String repositoryPath, java.lang.String path, DAVRepository repos, java.lang.String comment, boolean force, long revision) throws SVNException
      Throws:
      SVNException
    • doUnlock

      public void doUnlock(java.lang.String path, DAVRepository repos, java.lang.String id, boolean force) throws SVNException
      Throws:
      SVNException
    • doGet

      public void doGet(java.lang.String path, java.io.OutputStream os) throws SVNException
      Throws:
      SVNException
    • doGet

      public void doGet(java.lang.String path, java.lang.String deltaBaseVersionURL, java.io.OutputStream os) throws SVNException
      Throws:
      SVNException
    • doReport

      public HTTPStatus doReport(java.lang.String path, java.lang.StringBuffer requestBody, org.xml.sax.helpers.DefaultHandler handler) throws SVNException
      Throws:
      SVNException
    • doReport

      public HTTPStatus doReport(java.lang.String path, java.lang.StringBuffer requestBody, org.xml.sax.helpers.DefaultHandler handler, boolean spool) throws SVNException
      Throws:
      SVNException
    • doProppatch

      public void doProppatch(java.lang.String repositoryPath, java.lang.String path, java.lang.StringBuffer requestBody, org.xml.sax.helpers.DefaultHandler handler, SVNErrorMessage context) throws SVNException
      Throws:
      SVNException
    • doMakeActivity

      public java.lang.String doMakeActivity(ISVNWorkspaceMediator mediator) throws SVNException
      Throws:
      SVNException
    • doDelete

      public HTTPStatus doDelete(java.lang.String path) throws SVNException
      Throws:
      SVNException
    • doDelete

      public HTTPStatus doDelete(java.lang.String repositoryPath, java.lang.String path, long revision) throws SVNException
      Throws:
      SVNException
    • doMakeCollection

      public HTTPStatus doMakeCollection(java.lang.String path) throws SVNException
      Throws:
      SVNException
    • doPutDiff

      public HTTPStatus doPutDiff(java.lang.String repositoryPath, java.lang.String path, java.io.InputStream data, long size, java.lang.String baseChecksum, java.lang.String textChecksum) throws SVNException
      Throws:
      SVNException
    • doMerge

      public HTTPStatus doMerge(java.lang.String activityURL, boolean response, org.xml.sax.helpers.DefaultHandler handler) throws SVNException
      Throws:
      SVNException
    • doCheckout

      public HTTPStatus doCheckout(java.lang.String activityPath, java.lang.String repositoryPath, java.lang.String path, boolean allow404) throws SVNException
      Throws:
      SVNException
    • doCopy

      public void doCopy(java.lang.String src, java.lang.String dst, int depth) throws SVNException
      Throws:
      SVNException
    • doPost

      public HTTPStatus doPost(java.lang.String path, java.lang.String mimeType, byte[] body) throws SVNException
      Throws:
      SVNException
    • doHead

      public HTTPStatus doHead(java.lang.String path) throws SVNException
      Throws:
      SVNException
    • close

      public void close()
    • setLocks

      public void setLocks(java.util.Map locks, boolean keepLocks)
    • clearAuthenticationCache

      public void clearAuthenticationCache()
    • getCapabilityResponse

      public java.lang.String getCapabilityResponse(SVNCapability capability) throws SVNException
      Throws:
      SVNException
    • setCapability

      public void setCapability(SVNCapability capability, java.lang.String capResult)
    • hasHttpV2Support

      public boolean hasHttpV2Support()
    • getMeResource

      public java.lang.String getMeResource()
    • getSupportedPosts

      public java.util.List<java.lang.String> getSupportedPosts()
    • getTxnStub

      public java.lang.String getTxnStub()
    • getTxnRootStub

      public java.lang.String getTxnRootStub()
    • getVtxnStub

      public java.lang.String getVtxnStub()
    • getVtxnRootStub

      public java.lang.String getVtxnRootStub()
    • getConnection

      protected IHTTPConnection getConnection()
    • exchangeCapabilities

      protected void exchangeCapabilities() throws SVNException
      Throws:
      SVNException
    • getRepository

      protected SVNRepository getRepository()
    • parseCapabilities

      private void parseCapabilities(HTTPStatus status)
    • getRelativePath

      protected java.lang.String getRelativePath(java.lang.String origPath)
    • getRelativePath

      protected java.lang.String getRelativePath()
    • getActivityCollectionURL

      private java.lang.String getActivityCollectionURL(java.lang.String path, boolean force) throws SVNException
      Throws:
      SVNException
    • generateUUID

      private static java.lang.String generateUUID()
    • beforeCall

      private void beforeCall()
    • performHttpRequest

      private HTTPStatus performHttpRequest(IHTTPConnection httpConnection, java.lang.String method, java.lang.String path, HTTPHeader header, byte[] body, int ok1, int ok2, java.io.OutputStream dst, org.xml.sax.helpers.DefaultHandler handler) throws SVNException
      Throws:
      SVNException
    • performHttpRequest

      private HTTPStatus performHttpRequest(IHTTPConnection httpConnection, java.lang.String method, java.lang.String path, HTTPHeader header, java.lang.StringBuffer body, int ok1, int ok2, java.io.OutputStream dst, org.xml.sax.helpers.DefaultHandler handler) throws SVNException
      Throws:
      SVNException
    • performHttpRequest

      private HTTPStatus performHttpRequest(IHTTPConnection httpConnection, java.lang.String method, java.lang.String src, HTTPHeader header, java.lang.StringBuffer body, int ok1, int ok2, java.io.OutputStream dst, org.xml.sax.helpers.DefaultHandler handler, SVNErrorMessage context) throws SVNException
      Throws:
      SVNException
    • performHttpRequest

      private HTTPStatus performHttpRequest(IHTTPConnection httpConnection, java.lang.String method, java.lang.String path, HTTPHeader headers, java.io.InputStream data, int ok1, int ok2, java.io.OutputStream dst, org.xml.sax.helpers.DefaultHandler handler) throws SVNException
      Throws:
      SVNException