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 void
clearAuthenticationCache()
void
close()
static javax.xml.parsers.SAXParserFactory
createSAXParserFactory()
SVNURL
getHost()
HTTPStatus
getLastStatus()
SVNAuthentication
getLastValidCredentials()
SVNErrorMessage
readData(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request, java.io.OutputStream dst)
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)
SVNErrorMessage
readError(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request, java.lang.String method, java.lang.String path)
void
readHeader(org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest request)
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)
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)
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)
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)
void
sendData(byte[] body)
void
sendData(java.io.InputStream source, long length)
void
setSpoolAll(boolean spoolAll)
void
setSpoolDirectory(java.io.File spoolDirectory)
void
setSpoolResponse(boolean spoolResponse)
void
skipData(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:
getLastStatus
in 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:
getLastValidCredentials
in interfaceIHTTPConnection
-
clearAuthenticationCache
public void clearAuthenticationCache()
- Specified by:
clearAuthenticationCache
in 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:
request
in 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:
request
in 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:
request
in 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:
request
in 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:
close
in interfaceIHTTPConnection
-
createSAXParserFactory
public static javax.xml.parsers.SAXParserFactory createSAXParserFactory()
-
setSpoolResponse
public void setSpoolResponse(boolean spoolResponse)
- Specified by:
setSpoolResponse
in interfaceIHTTPConnection
-
setSpoolAll
public void setSpoolAll(boolean spoolAll)
-
setSpoolDirectory
public void setSpoolDirectory(java.io.File spoolDirectory)
-
-