public class DirContextURLConnection
extends java.net.URLConnection
| Modifier and Type | Field and Description | 
|---|---|
| protected javax.naming.directory.Attributes | attributesAttributes. | 
| protected javax.naming.directory.DirContext | collectionAssociated DirContext. | 
| protected javax.naming.directory.DirContext | contextDirectory context. | 
| protected long | dateDate. | 
| protected java.lang.Object | objectOther unknown object. | 
| protected java.security.Permission | permissionPermission | 
| protected Resource | resourceAssociated resource. | 
| Constructor and Description | 
|---|
| DirContextURLConnection(javax.naming.directory.DirContext context,
java.net.URL url) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | connect()Connect to the DirContext, and retrieve the bound object, as well as
its attributes. | 
| java.lang.Object | getContent()Get object content. | 
| java.lang.Object | getContent(java.lang.Class[] classes)Get object content. | 
| int | getContentLength()Return the content length value. | 
| java.lang.String | getContentType()Return the content type value. | 
| long | getDate()Return the last modified date. | 
| java.lang.String | getHeaderField(java.lang.String name)Returns the name of the specified header field. | 
| java.util.Map<java.lang.String,java.util.List<java.lang.String>> | getHeaderFields()Returns an unmodifiable Map of the header fields. | 
| protected java.lang.String | getHeaderValueAsString(java.lang.Object headerValue) | 
| java.io.InputStream | getInputStream()Get input stream. | 
| long | getLastModified()Return the last modified date. | 
| java.security.Permission | getPermission()Get the Permission for this URL | 
| java.util.Enumeration<java.lang.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 javax.naming.directory.DirContext context
protected Resource resource
protected javax.naming.directory.DirContext collection
protected java.lang.Object object
protected javax.naming.directory.Attributes attributes
protected long date
protected java.security.Permission permission
public DirContextURLConnection(javax.naming.directory.DirContext context,
                       java.net.URL url)
public void connect()
             throws java.io.IOException
connect in class java.net.URLConnectionjava.io.IOException - Object not foundpublic int getContentLength()
getContentLength in class java.net.URLConnectionpublic java.lang.String getContentType()
getContentType in class java.net.URLConnectionpublic long getDate()
getDate in class java.net.URLConnectionpublic long getLastModified()
getLastModified in class java.net.URLConnectionprotected java.lang.String getHeaderValueAsString(java.lang.Object headerValue)
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderFields()
getHeaderFields in class java.net.URLConnectionpublic java.lang.String getHeaderField(java.lang.String name)
getHeaderField in class java.net.URLConnectionpublic java.lang.Object getContent()
                            throws java.io.IOException
getContent in class java.net.URLConnectionjava.io.IOExceptionpublic java.lang.Object getContent(java.lang.Class[] classes)
                            throws java.io.IOException
getContent in class java.net.URLConnectionjava.io.IOExceptionpublic java.io.InputStream getInputStream()
                                   throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOExceptionpublic java.security.Permission getPermission()
getPermission in class java.net.URLConnectionpublic java.util.Enumeration<java.lang.String> list()
                                             throws java.io.IOException
java.io.IOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.