Class HTTPConnection
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection
-
- All Implemented Interfaces:
IHTTPConnection
public class HTTPConnection extends java.lang.Object implements IHTTPConnection
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Constructor Description HTTPConnection(SVNRepository repository, java.lang.String charset, java.io.File spoolDirectory, boolean spoolAll)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearAuthenticationCache()voidclose()static javax.xml.parsers.SAXParserFactorycreateSAXParserFactory()SVNURLgetHost()HTTPStatusgetLastStatus()SVNAuthenticationgetLastValidCredentials()SVNErrorMessagereadData(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request, java.io.OutputStream dst)SVNErrorMessagereadData(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request, java.lang.String method, java.lang.String path, org.xml.sax.helpers.DefaultHandler handler)SVNErrorMessagereadError(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request, java.lang.String method, java.lang.String path)voidreadHeader(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request)HTTPStatusrequest(java.lang.String method, java.lang.String path, HTTPHeader header, java.io.InputStream body, int ok1, int ok2, java.io.OutputStream dst, org.xml.sax.helpers.DefaultHandler handler)HTTPStatusrequest(java.lang.String method, java.lang.String path, HTTPHeader header, java.io.InputStream body, int ok1, int ok2, java.io.OutputStream dst, org.xml.sax.helpers.DefaultHandler handler, SVNErrorMessage context)HTTPStatusrequest(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)HTTPStatusrequest(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, SVNErrorMessage context)voidsendData(byte[] body)voidsendData(java.io.InputStream source, long length)voidsetSpoolAll(boolean spoolAll)voidsetSpoolDirectory(java.io.File spoolDirectory)voidsetSpoolResponse(boolean spoolResponse)voidskipData(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request)
-
-
-
Constructor Detail
-
HTTPConnection
public HTTPConnection(SVNRepository repository, java.lang.String charset, java.io.File spoolDirectory, boolean spoolAll) throws SVNException
- Throws:
SVNException
-
-
Method Detail
-
getLastStatus
public HTTPStatus getLastStatus()
- Specified by:
getLastStatusin interfaceIHTTPConnection
-
getHost
public SVNURL getHost()
-
readHeader
public void readHeader(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request) throws java.io.IOException- Throws:
java.io.IOException
-
readError
public SVNErrorMessage readError(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request, java.lang.String method, java.lang.String path)
-
sendData
public void sendData(byte[] body) throws java.io.IOException- Throws:
java.io.IOException
-
sendData
public void sendData(java.io.InputStream source, long length) throws java.io.IOException- Throws:
java.io.IOException
-
getLastValidCredentials
public SVNAuthentication getLastValidCredentials()
- Specified by:
getLastValidCredentialsin interfaceIHTTPConnection
-
clearAuthenticationCache
public void clearAuthenticationCache()
- Specified by:
clearAuthenticationCachein interfaceIHTTPConnection
-
request
public HTTPStatus request(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
- Specified by:
requestin interfaceIHTTPConnection- Throws:
SVNException
-
request
public HTTPStatus request(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, SVNErrorMessage context) throws SVNException
- Specified by:
requestin interfaceIHTTPConnection- Throws:
SVNException
-
request
public HTTPStatus request(java.lang.String method, java.lang.String path, HTTPHeader header, java.io.InputStream body, int ok1, int ok2, java.io.OutputStream dst, org.xml.sax.helpers.DefaultHandler handler) throws SVNException
- Specified by:
requestin interfaceIHTTPConnection- Throws:
SVNException
-
request
public HTTPStatus request(java.lang.String method, java.lang.String path, HTTPHeader header, java.io.InputStream body, int ok1, int ok2, java.io.OutputStream dst, org.xml.sax.helpers.DefaultHandler handler, SVNErrorMessage context) throws SVNException
- Specified by:
requestin interfaceIHTTPConnection- Throws:
SVNException
-
readData
public SVNErrorMessage readData(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request, java.io.OutputStream dst) throws java.io.IOException
- Throws:
java.io.IOException
-
readData
public SVNErrorMessage readData(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request, java.lang.String method, java.lang.String path, org.xml.sax.helpers.DefaultHandler handler) throws java.io.IOException
- Throws:
java.io.IOException
-
skipData
public void skipData(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request) throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
closein interfaceIHTTPConnection
-
createSAXParserFactory
public static javax.xml.parsers.SAXParserFactory createSAXParserFactory()
-
setSpoolResponse
public void setSpoolResponse(boolean spoolResponse)
- Specified by:
setSpoolResponsein interfaceIHTTPConnection
-
setSpoolAll
public void setSpoolAll(boolean spoolAll)
-
setSpoolDirectory
public void setSpoolDirectory(java.io.File spoolDirectory)
-
-