jcifs.http

Class NtlmHttpURLConnection


public class NtlmHttpURLConnection
extends HttpURLConnection

Wraps an HttpURLConnection to provide NTLM authentication services. Please read Using jCIFS NTLM Authentication for HTTP Connections.

Constructor Summary

NtlmHttpURLConnection(HttpURLConnection connection)

Method Summary

void
addRequestProperty(String key, String value)
void
connect()
void
disconnect()
boolean
getAllowUserInteraction()
Object
getContent()
Object
getContent(Class[] classes)
String
getContentEncoding()
int
getContentLength()
String
getContentType()
long
getDate()
boolean
getDefaultUseCaches()
boolean
getDoInput()
boolean
getDoOutput()
InputStream
getErrorStream()
long
getExpiration()
String
getHeaderField(String header)
String
getHeaderField(int index)
long
getHeaderFieldDate(String header, long def)
int
getHeaderFieldInt(String header, int def)
String
getHeaderFieldKey(int index)
Map
getHeaderFields()
long
getIfModifiedSince()
InputStream
getInputStream()
boolean
getInstanceFollowRedirects()
long
getLastModified()
OutputStream
getOutputStream()
Permission
getPermission()
String
getRequestMethod()
Map
getRequestProperties()
String
getRequestProperty(String key)
int
getResponseCode()
String
getResponseMessage()
URL
getURL()
boolean
getUseCaches()
void
setAllowUserInteraction(boolean allowUserInteraction)
void
setDefaultUseCaches(boolean defaultUseCaches)
void
setDoInput(boolean doInput)
void
setDoOutput(boolean doOutput)
void
setIfModifiedSince(long ifModifiedSince)
void
setInstanceFollowRedirects(boolean instanceFollowRedirects)
void
setRequestMethod(String requestMethod)
void
setRequestProperty(String key, String value)
void
setUseCaches(boolean useCaches)
String
toString()
boolean
usingProxy()

Constructor Details

NtlmHttpURLConnection

public NtlmHttpURLConnection(HttpURLConnection connection)

Method Details

addRequestProperty

public void addRequestProperty(String key,
                               String value)

connect

public void connect()
            throws IOException

disconnect

public void disconnect()

getAllowUserInteraction

public boolean getAllowUserInteraction()

getContent

public Object getContent()
            throws IOException

getContent

public Object getContent(Class[] classes)
            throws IOException

getContentEncoding

public String getContentEncoding()

getContentLength

public int getContentLength()

getContentType

public String getContentType()

getDate

public long getDate()

getDefaultUseCaches

public boolean getDefaultUseCaches()

getDoInput

public boolean getDoInput()

getDoOutput

public boolean getDoOutput()

getErrorStream

public InputStream getErrorStream()

getExpiration

public long getExpiration()

getHeaderField

public String getHeaderField(String header)

getHeaderField

public String getHeaderField(int index)

getHeaderFieldDate

public long getHeaderFieldDate(String header,
                               long def)

getHeaderFieldInt

public int getHeaderFieldInt(String header,
                             int def)

getHeaderFieldKey

public String getHeaderFieldKey(int index)

getHeaderFields

public Map getHeaderFields()

getIfModifiedSince

public long getIfModifiedSince()

getInputStream

public InputStream getInputStream()
            throws IOException

getInstanceFollowRedirects

public boolean getInstanceFollowRedirects()

getLastModified

public long getLastModified()

getOutputStream

public OutputStream getOutputStream()
            throws IOException

getPermission

public Permission getPermission()
            throws IOException

getRequestMethod

public String getRequestMethod()

getRequestProperties

public Map getRequestProperties()

getRequestProperty

public String getRequestProperty(String key)

getResponseCode

public int getResponseCode()
            throws IOException

getResponseMessage

public String getResponseMessage()
            throws IOException

getURL

public URL getURL()

getUseCaches

public boolean getUseCaches()

setAllowUserInteraction

public void setAllowUserInteraction(boolean allowUserInteraction)

setDefaultUseCaches

public void setDefaultUseCaches(boolean defaultUseCaches)

setDoInput

public void setDoInput(boolean doInput)

setDoOutput

public void setDoOutput(boolean doOutput)

setIfModifiedSince

public void setIfModifiedSince(long ifModifiedSince)

setInstanceFollowRedirects

public void setInstanceFollowRedirects(boolean instanceFollowRedirects)

setRequestMethod

public void setRequestMethod(String requestMethod)
            throws ProtocolException

setRequestProperty

public void setRequestProperty(String key,
                               String value)

setUseCaches

public void setUseCaches(boolean useCaches)

toString

public String toString()

usingProxy

public boolean usingProxy()