| java.lang.Object org.outerj.daisy.repository.clientimpl.infrastructure.DaisyHttpClient
DaisyHttpClient | public class DaisyHttpClient (Code) | | |
Constructor Summary | |
public | DaisyHttpClient(HttpClient sharedHttpClient, HostConfiguration sharedHostConfiguration, HttpState httpState, String login) |
Method Summary | |
public static HttpState | buildHttpState(String login, String password, long[] activeRoleIds) | public XmlObject | executeMethod(HttpMethod method, Class xmlObjectResponseClass, boolean releaseConnection) Executes the given method, and handles the response to take care of exceptions
or non-OK responses, and optionally parses the response body according to the specified
XmlObject class. | public static String | getContentType(HttpMethod method) | public void | handleNotOkResponse(HttpMethod method) |
DaisyHttpClient | public DaisyHttpClient(HttpClient sharedHttpClient, HostConfiguration sharedHostConfiguration, HttpState httpState, String login)(Code) | | |
buildHttpState | public static HttpState buildHttpState(String login, String password, long[] activeRoleIds)(Code) | | |
executeMethod | public XmlObject executeMethod(HttpMethod method, Class xmlObjectResponseClass, boolean releaseConnection) throws RepositoryException(Code) | | Executes the given method, and handles the response to take care of exceptions
or non-OK responses, and optionally parses the response body according to the specified
XmlObject class. If this method returns without throwing an exception, one can
assume that the execution of the HTTP method was successful.
Parameters: xmlObjectResponseClass - an Apache XmlBeans generated class (having a Factory inner class). the XmlObject resulting from the parsing of the response body, or null if no XmlObjectclass was specified. |
|
|