| |
|
| java.lang.Object java.net.URLConnection org.apache.naming.handler.jndi.DirContextURLConnection
DirContextURLConnection | public class DirContextURLConnection extends URLConnection (Code) | | Connection to a JNDI directory context.
Note: All the object attribute names are the WebDAV names, not the HTTP
names, so this class overrides some methods from URLConnection to do the
queries using the right names. Content handler is also not used; the
content is directly returned.
author: Remy Maucherat author: Costin Manolache |
date | protected long date(Code) | | Date.
|
resource | protected Object resource(Code) | | Associated resource.
|
DirContextURLConnection | public DirContextURLConnection(DirContext context, URL url)(Code) | | Parameters: context - The base context for the dynamic resources.For regular webapps, it should be a thread-bound context, probablya branch under java:For top-level apps, it can be either the InitialContext or a branchthat is used for all content.The choice of the context affects the base of the URLs. |
connect | public void connect() throws IOException(Code) | | Connect to the DirContext, and retrive the bound object, as well as
its attributes. If no object is bound with the name specified in the
URL, then an IOException is thrown.
throws: IOException - Object not found |
getContentLength | public int getContentLength()(Code) | | Return the content length value.
|
getContentType | public String getContentType()(Code) | | Return the content type value.
|
getDate | public long getDate()(Code) | | Return the last modified date.
TODO: it's broken
|
getHeaderField | public String getHeaderField(String name)(Code) | | Returns the name of the specified header field.
|
getInputStream | public static InputStream getInputStream(Object resource)(Code) | | Try to extract content from a resource found in the directory
Code from Resource and ProxyContext.
|
getLastModified | public long getLastModified()(Code) | | Return the last modified date.
|
getPermission | public Permission getPermission()(Code) | | Get the Permission for this URL
|
list | public Enumeration list() throws IOException(Code) | | List children of this collection. The names given are relative to this
URI's path. The full uri of the children is then : path + "/" + name.
|
|
|
|