public class DirContextURLConnection extends URLConnection
| Modifier and Type | Field and Description |
|---|---|
protected Attributes |
attributes
Attributes.
|
protected DirContext |
collection
Associated DirContext.
|
protected DirContext |
context
Directory context.
|
protected long |
date
Date.
|
static boolean |
IS_SECURITY_ENABLED
Is the Java SecurityManager enabled?
|
protected Object |
object
Other unknown object.
|
protected Permission |
permission
Permission
|
protected Resource |
resource
Associated resource.
|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches| Constructor and Description |
|---|
DirContextURLConnection(DirContext context,
URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connect to the DirContext, and retrive the bound object, as well as
its attributes.
|
Object |
getContent()
Get object content.
|
Object |
getContent(Class[] classes)
Get object content.
|
int |
getContentLength()
Return the content length value.
|
String |
getContentType()
Return the content type value.
|
long |
getDate()
Return the last modified date.
|
String |
getHeaderField(String name)
Returns the name of the specified header field.
|
Map<String,List<String>> |
getHeaderFields()
Returns an unmodifiable Map of the header fields.
|
InputStream |
getInputStream()
Get input stream.
|
long |
getLastModified()
Return the last modified date.
|
Permission |
getPermission()
Get the Permission for this URL
|
Enumeration<String> |
list()
List children of this collection.
|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContentEncoding, getContentLengthLong, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getIfModifiedSince, getOutputStream, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toStringprotected DirContext context
protected Resource resource
protected DirContext collection
protected Object object
protected Attributes attributes
protected long date
protected Permission permission
public static final boolean IS_SECURITY_ENABLED
public DirContextURLConnection(DirContext context, URL url)
public void connect()
throws IOException
connect in class URLConnectionIOException - Object not foundpublic int getContentLength()
getContentLength in class URLConnectionpublic String getContentType()
getContentType in class URLConnectionpublic long getDate()
getDate in class URLConnectionpublic long getLastModified()
getLastModified in class URLConnectionpublic Map<String,List<String>> getHeaderFields()
getHeaderFields in class URLConnectionpublic String getHeaderField(String name)
getHeaderField in class URLConnectionpublic Object getContent() throws IOException
getContent in class URLConnectionIOExceptionpublic Object getContent(Class[] classes) throws IOException
getContent in class URLConnectionIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class URLConnectionIOExceptionpublic Permission getPermission()
getPermission in class URLConnectionpublic Enumeration<String> list() throws IOException
IOExceptionCopyright © 2019. All rights reserved.