|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.core.request.HttpWebRequest
microsoft.exchange.webservices.data.core.request.HttpClientWebRequest
public class HttpClientWebRequest
HttpClientWebRequest is used for making request to the server through NTLM Authentication by using Apache HttpClient 3.1 and JCIFS Library.
| Constructor Summary | |
|---|---|
HttpClientWebRequest(org.apache.http.impl.client.CloseableHttpClient httpClient,
org.apache.http.client.protocol.HttpClientContext httpContext)
Instantiates a new http native web request. |
|
| Method Summary | |
|---|---|
void |
close()
Releases the connection by Closing. |
int |
executeRequest()
Executes Request by sending request xml data to server. |
String |
getContentEncoding()
Gets the content encoding. |
InputStream |
getErrorStream()
Gets the error stream. |
InputStream |
getInputStream()
Gets the input stream. |
OutputStream |
getOutputStream()
Gets the output stream. |
Map<String,String> |
getRequestProperty()
Gets the request property. |
int |
getResponseCode()
Gets the response code. |
String |
getResponseContentType()
Gets the response content type. |
String |
getResponseHeaderField(String headerName)
Gets the response header field. |
Map<String,String> |
getResponseHeaders()
Gets the response headers. |
String |
getResponseText()
Gets the response message. |
void |
prepareConnection()
Prepares the request by setting appropriate headers, authentication, timeouts, etc. |
| Methods inherited from class microsoft.exchange.webservices.data.core.request.HttpWebRequest |
|---|
getAccept, getContentType, getDomain, getHeaders, getPassword, getProxy, getRequestMethod, getTimeout, getUrl, getUserAgent, getUsername, isAcceptGzipEncoding, isAllowAuthentication, isAllowAutoRedirect, isHttpScheme, isHttpsScheme, isKeepAlive, isPreAuthenticate, isUseDefaultCredentials, setAccept, setAcceptGzipEncoding, setAllowAuthentication, setAllowAutoRedirect, setContentType, setCredentials, setDomain, setHeaders, setKeepAlive, setPassword, setPreAuthenticate, setProxy, setRequestMethod, setTimeout, setUrl, setUseDefaultCredentials, setUserAgent, setUsername |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpClientWebRequest(org.apache.http.impl.client.CloseableHttpClient httpClient,
org.apache.http.client.protocol.HttpClientContext httpContext)
| Method Detail |
|---|
public void close()
throws IOException
close in class HttpWebRequestIOExceptionpublic void prepareConnection()
prepareConnection in class HttpWebRequest
public InputStream getInputStream()
throws EWSHttpException,
IOException
getInputStream in class HttpWebRequestEWSHttpException - the EWS http exception
IOException - the IO exception
public InputStream getErrorStream()
throws EWSHttpException
getErrorStream in class HttpWebRequestEWSHttpException - the EWS http exception
public OutputStream getOutputStream()
throws EWSHttpException
getOutputStream in class HttpWebRequestEWSHttpException - the EWS http exception
public Map<String,String> getResponseHeaders()
throws EWSHttpException
getResponseHeaders in class HttpWebRequestEWSHttpException - the EWS http exception
public String getResponseHeaderField(String headerName)
throws EWSHttpException
HttpWebRequest
getResponseHeaderField in class HttpWebRequestheaderName - the header name
EWSHttpException - the EWS http exception
public String getContentEncoding()
throws EWSHttpException
getContentEncoding in class HttpWebRequestEWSHttpException - the EWS http exception
public String getResponseContentType()
throws EWSHttpException
getResponseContentType in class HttpWebRequestEWSHttpException - the EWS http exception
public int executeRequest()
throws EWSHttpException,
IOException
executeRequest in class HttpWebRequestEWSHttpException - the EWS http exception
IOException - the IO Exception
public int getResponseCode()
throws EWSHttpException
getResponseCode in class HttpWebRequestEWSHttpException - the EWS http exception
public String getResponseText()
throws EWSHttpException
getResponseText in class HttpWebRequestEWSHttpException - the EWS http exception
public Map<String,String> getRequestProperty()
throws EWSHttpException
getRequestProperty in class HttpWebRequestEWSHttpException - the EWS http exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||