01: /*
02: * ====================================================================
03: * Copyright (c) 2004-2008 TMate Software Ltd. All rights reserved.
04: *
05: * This software is licensed as described in the file COPYING, which
06: * you should have received as part of this distribution. The terms
07: * are also available at http://svnkit.com/license.html
08: * If newer versions of this license are posted there, you may use a
09: * newer version instead, at your option.
10: * ====================================================================
11: */
12: package org.tmatesoft.svn.core.internal.io.dav.http;
13:
14: import java.io.InputStream;
15: import java.io.OutputStream;
16:
17: import org.tmatesoft.svn.core.SVNErrorMessage;
18: import org.tmatesoft.svn.core.SVNException;
19: import org.tmatesoft.svn.core.auth.SVNAuthentication;
20: import org.xml.sax.helpers.DefaultHandler;
21:
22: /**
23: * @version 1.1.1
24: * @author TMate Software Ltd.
25: */
26: public interface IHTTPConnection {
27:
28: public void setSpoolResponse(boolean spoolResponse);
29:
30: public HTTPStatus request(String method, String path,
31: HTTPHeader header, StringBuffer body, int ok1, int ok2,
32: OutputStream dst, DefaultHandler handler)
33: throws SVNException;
34:
35: public HTTPStatus request(String method, String path,
36: HTTPHeader header, StringBuffer body, int ok1, int ok2,
37: OutputStream dst, DefaultHandler handler,
38: SVNErrorMessage context) throws SVNException;
39:
40: public HTTPStatus request(String method, String path,
41: HTTPHeader header, InputStream body, int ok1, int ok2,
42: OutputStream dst, DefaultHandler handler)
43: throws SVNException;
44:
45: public HTTPStatus request(String method, String path,
46: HTTPHeader header, InputStream body, int ok1, int ok2,
47: OutputStream dst, DefaultHandler handler,
48: SVNErrorMessage context) throws SVNException;
49:
50: public SVNAuthentication getLastValidCredentials();
51:
52: public void clearAuthenticationCache();
53:
54: public void close();
55: }
|