| java.lang.Object org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest
HTTPRequest | class HTTPRequest (Code) | | version: 1.1.1 author: TMate Software Ltd. |
Field Summary | |
final public static char[] | CRLF |
Method Summary | |
public static SVNErrorMessage | createDefaultErrorMessage(SVNURL host, HTTPStatus status, String context, Object[] contextObjects) | public void | dispatch(String request, String path, HTTPHeader header, int ok1, int ok2, SVNErrorMessage context) heart of http engine. | public SVNErrorMessage | getErrorMessage() | public HTTPHeader | getResponseHeader() | public HTTPStatus | getStatus() | public void | initCredentials(HTTPAuthentication authentication, String method, String path) | public void | reset() | public void | setAuthentication(String auth) | public void | setConnection(HTTPConnection connection) | public void | setForceProxyAuth(boolean force) | public void | setKeepAlive(boolean isKeepAlive) | public void | setProxied(boolean proxied) | public void | setProxyAuthentication(String auth) | public void | setRequestBody(byte[] body) | public void | setRequestBody(StringBuffer sb) | public void | setRequestBody(InputStream is) | public void | setResponseHandler(DefaultHandler handler) | public void | setResponseHeader(HTTPHeader header) | public void | setResponseStream(OutputStream os) | public void | setSecured(boolean secured) | public void | setStatus(HTTPStatus status) |
CRLF | final public static char[] CRLF(Code) | | |
dispatch | public void dispatch(String request, String path, HTTPHeader header, int ok1, int ok2, SVNErrorMessage context) throws IOException(Code) | | heart of http engine.
features:
// all this should be moved outside this method:
- authentication callback to process 401 and 403 codes, failure results in returning error message.
- another callback to process 301 and 302 codes, failure results in returning error message.
- code that process ssl exceptions and re-prompts for client certificate when allowed.
// auth error, ssl exception and "moved" errors should be processed by the caller.
- code to send request body.
- code to parse svn error response in case return code is not ok1 and ok2.
- standard http error should be returned otherwise.
- body may be resetable inputStream + length - IMeasurable.
// this may throw IOException that will be converted to: timeout error, can't connect error, or ssl will re-prompt.
|
reset | public void reset()(Code) | | |
setAuthentication | public void setAuthentication(String auth)(Code) | | |
setForceProxyAuth | public void setForceProxyAuth(boolean force)(Code) | | |
setKeepAlive | public void setKeepAlive(boolean isKeepAlive)(Code) | | |
setProxied | public void setProxied(boolean proxied)(Code) | | |
setProxyAuthentication | public void setProxyAuthentication(String auth)(Code) | | |
setRequestBody | public void setRequestBody(byte[] body)(Code) | | |
setSecured | public void setSecured(boolean secured)(Code) | | |
|
|