@Deprecated public class NtlmHttpURLConnection extends HttpURLConnection
HttpURLConnection to provide NTLM authentication
services.
Please read Using jCIFS NTLM Authentication for HTTP Connections.
Warning: Do not use this if there is a chance that you might have multiple connections (even plain
HttpURLConnections, for the complete JRE) to the same host with different or mixed anonymous/authenticated
credentials. Authenticated connections can/will be reused.HTTP_ACCEPTED, HTTP_BAD_GATEWAY, HTTP_BAD_METHOD, HTTP_BAD_REQUEST, HTTP_CLIENT_TIMEOUT, HTTP_CONFLICT, HTTP_CREATED, HTTP_ENTITY_TOO_LARGE, HTTP_FORBIDDEN, HTTP_GATEWAY_TIMEOUT, HTTP_GONE, HTTP_INTERNAL_ERROR, HTTP_LENGTH_REQUIRED, HTTP_MOVED_PERM, HTTP_MOVED_TEMP, HTTP_MULT_CHOICE, HTTP_NO_CONTENT, HTTP_NOT_ACCEPTABLE, HTTP_NOT_AUTHORITATIVE, HTTP_NOT_FOUND, HTTP_NOT_IMPLEMENTED, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_PARTIAL, HTTP_PAYMENT_REQUIRED, HTTP_PRECON_FAILED, HTTP_PROXY_AUTH, HTTP_REQ_TOO_LONG, HTTP_RESET, HTTP_SEE_OTHER, HTTP_SERVER_ERROR, HTTP_UNAUTHORIZED, HTTP_UNAVAILABLE, HTTP_UNSUPPORTED_TYPE, HTTP_USE_PROXY, HTTP_VERSION| Constructor and Description |
|---|
NtlmHttpURLConnection(HttpURLConnection connection,
CIFSContext tc)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestProperty(String key,
String value)
Deprecated.
|
void |
connect()
Deprecated.
|
void |
disconnect()
Deprecated.
|
boolean |
getAllowUserInteraction()
Deprecated.
|
int |
getConnectTimeout()
Deprecated.
|
Object |
getContent()
Deprecated.
|
Object |
getContent(Class[] classes)
Deprecated.
|
String |
getContentEncoding()
Deprecated.
|
int |
getContentLength()
Deprecated.
|
String |
getContentType()
Deprecated.
|
long |
getDate()
Deprecated.
|
boolean |
getDefaultUseCaches()
Deprecated.
|
boolean |
getDoInput()
Deprecated.
|
boolean |
getDoOutput()
Deprecated.
|
InputStream |
getErrorStream()
Deprecated.
|
long |
getExpiration()
Deprecated.
|
String |
getHeaderField(int index)
Deprecated.
|
String |
getHeaderField(String header)
Deprecated.
|
long |
getHeaderFieldDate(String header,
long def)
Deprecated.
|
int |
getHeaderFieldInt(String header,
int def)
Deprecated.
|
String |
getHeaderFieldKey(int index)
Deprecated.
|
Map<String,List<String>> |
getHeaderFields()
Deprecated.
|
long |
getIfModifiedSince()
Deprecated.
|
InputStream |
getInputStream()
Deprecated.
|
boolean |
getInstanceFollowRedirects()
Deprecated.
|
long |
getLastModified()
Deprecated.
|
OutputStream |
getOutputStream()
Deprecated.
|
Permission |
getPermission()
Deprecated.
|
int |
getReadTimeout()
Deprecated.
|
String |
getRequestMethod()
Deprecated.
|
Map<String,List<String>> |
getRequestProperties()
Deprecated.
|
String |
getRequestProperty(String key)
Deprecated.
|
int |
getResponseCode()
Deprecated.
|
String |
getResponseMessage()
Deprecated.
|
URL |
getURL()
Deprecated.
|
boolean |
getUseCaches()
Deprecated.
|
void |
setAllowUserInteraction(boolean allowUserInteraction)
Deprecated.
|
void |
setConnectTimeout(int timeout)
Deprecated.
|
void |
setDefaultUseCaches(boolean defaultUseCaches)
Deprecated.
|
void |
setDoInput(boolean doInput)
Deprecated.
|
void |
setDoOutput(boolean doOutput)
Deprecated.
|
void |
setIfModifiedSince(long ifModifiedSince)
Deprecated.
|
void |
setInstanceFollowRedirects(boolean instanceFollowRedirects)
Deprecated.
|
void |
setReadTimeout(int timeout)
Deprecated.
|
void |
setRequestMethod(String requestMethod)
Deprecated.
|
void |
setRequestProperty(String key,
String value)
Deprecated.
|
void |
setUseCaches(boolean useCaches)
Deprecated.
|
String |
toString()
Deprecated.
|
boolean |
usingProxy()
Deprecated.
|
getFollowRedirects, setChunkedStreamingMode, setFixedLengthStreamingMode, setFixedLengthStreamingMode, setFollowRedirectsgetContentLengthLong, getDefaultAllowUserInteraction, getDefaultRequestProperty, getFileNameMap, getHeaderFieldLong, guessContentTypeFromName, guessContentTypeFromStream, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setFileNameMappublic NtlmHttpURLConnection(HttpURLConnection connection, CIFSContext tc)
connection - connection to wraptc - context to usepublic void connect()
throws IOException
connect in class URLConnectionIOExceptionpublic URL getURL()
getURL in class URLConnectionpublic int getContentLength()
getContentLength in class URLConnectionpublic String getContentType()
getContentType in class URLConnectionpublic String getContentEncoding()
getContentEncoding in class URLConnectionpublic long getExpiration()
getExpiration in class URLConnectionpublic long getDate()
getDate in class URLConnectionpublic long getLastModified()
getLastModified in class URLConnectionpublic String getHeaderField(String header)
getHeaderField in class URLConnectionpublic Map<String,List<String>> getHeaderFields()
getHeaderFields in class URLConnectionpublic int getHeaderFieldInt(String header, int def)
getHeaderFieldInt in class URLConnectionpublic long getHeaderFieldDate(String header, long def)
getHeaderFieldDate in class HttpURLConnectionpublic String getHeaderFieldKey(int index)
getHeaderFieldKey in class HttpURLConnectionpublic String getHeaderField(int index)
getHeaderField in class HttpURLConnectionpublic Object getContent() throws IOException
getContent in class URLConnectionIOExceptionpublic Object getContent(Class[] classes) throws IOException
getContent in class URLConnectionIOExceptionpublic Permission getPermission() throws IOException
getPermission in class HttpURLConnectionIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class URLConnectionIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in class URLConnectionIOExceptionpublic String toString()
toString in class URLConnectionpublic void setDoInput(boolean doInput)
setDoInput in class URLConnectionpublic boolean getDoInput()
getDoInput in class URLConnectionpublic void setDoOutput(boolean doOutput)
setDoOutput in class URLConnectionpublic boolean getDoOutput()
getDoOutput in class URLConnectionpublic void setAllowUserInteraction(boolean allowUserInteraction)
setAllowUserInteraction in class URLConnectionpublic boolean getAllowUserInteraction()
getAllowUserInteraction in class URLConnectionpublic void setUseCaches(boolean useCaches)
setUseCaches in class URLConnectionpublic boolean getUseCaches()
getUseCaches in class URLConnectionpublic void setIfModifiedSince(long ifModifiedSince)
setIfModifiedSince in class URLConnectionpublic long getIfModifiedSince()
getIfModifiedSince in class URLConnectionpublic boolean getDefaultUseCaches()
getDefaultUseCaches in class URLConnectionpublic void setDefaultUseCaches(boolean defaultUseCaches)
setDefaultUseCaches in class URLConnectionpublic int getConnectTimeout()
getConnectTimeout in class URLConnectionpublic void setConnectTimeout(int timeout)
setConnectTimeout in class URLConnectionpublic int getReadTimeout()
getReadTimeout in class URLConnectionpublic void setReadTimeout(int timeout)
setReadTimeout in class URLConnectionpublic void setRequestProperty(String key, String value)
setRequestProperty in class URLConnectionpublic void addRequestProperty(String key, String value)
addRequestProperty in class URLConnectionpublic String getRequestProperty(String key)
getRequestProperty in class URLConnectionpublic Map<String,List<String>> getRequestProperties()
getRequestProperties in class URLConnectionpublic void setInstanceFollowRedirects(boolean instanceFollowRedirects)
setInstanceFollowRedirects in class HttpURLConnectionpublic boolean getInstanceFollowRedirects()
getInstanceFollowRedirects in class HttpURLConnectionpublic void setRequestMethod(String requestMethod) throws ProtocolException
setRequestMethod in class HttpURLConnectionProtocolExceptionpublic String getRequestMethod()
getRequestMethod in class HttpURLConnectionpublic int getResponseCode()
throws IOException
getResponseCode in class HttpURLConnectionIOExceptionpublic String getResponseMessage() throws IOException
getResponseMessage in class HttpURLConnectionIOExceptionpublic void disconnect()
disconnect in class HttpURLConnectionpublic boolean usingProxy()
usingProxy in class HttpURLConnectionpublic InputStream getErrorStream()
getErrorStream in class HttpURLConnectionCopyright © 2021. All rights reserved.