org.apache.naming.resources
クラス DirContextURLConnection

java.lang.Object
  |
  +--java.net.URLConnection
        |
        +--org.apache.naming.resources.DirContextURLConnection

public class DirContextURLConnection
extends java.net.URLConnection

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.

バージョン:
$Revision: 1.12 $
作成者:
Remy Maucherat

フィールドの概要
protected  javax.naming.directory.Attributes attributes
          Attributes.
protected  javax.naming.directory.DirContext collection
          Associated DirContext.
protected  javax.naming.directory.DirContext context
          Directory context.
protected  long date
          Date.
protected  java.lang.Object object
          Other unknown object.
protected  java.security.Permission permission
          Permission
protected  Resource resource
          Associated resource.
 
クラス java.net.URLConnection から継承したフィールド
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
コンストラクタの概要
DirContextURLConnection(javax.naming.directory.DirContext context, java.net.URL url)
           
 
メソッドの概要
 void connect()
          Connect to the DirContext, and retrive 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.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 list()
          List children of this collection.
 
クラス java.net.URLConnection から継承したメソッド
getAllowUserInteraction, getContentEncoding, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getIfModifiedSince, getOutputStream, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

context

protected javax.naming.directory.DirContext context
Directory context.

resource

protected Resource resource
Associated resource.

collection

protected javax.naming.directory.DirContext collection
Associated DirContext.

object

protected java.lang.Object object
Other unknown object.

attributes

protected javax.naming.directory.Attributes attributes
Attributes.

date

protected long date
Date.

permission

protected java.security.Permission permission
Permission
コンストラクタの詳細

DirContextURLConnection

public DirContextURLConnection(javax.naming.directory.DirContext context,
                               java.net.URL url)
メソッドの詳細

connect

public void connect()
             throws java.io.IOException
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.
オーバーライド:
クラス java.net.URLConnection 内の connect
例外:
java.io.IOException - Object not found

getContentLength

public int getContentLength()
Return the content length value.
オーバーライド:
クラス java.net.URLConnection 内の getContentLength

getContentType

public java.lang.String getContentType()
Return the content type value.
オーバーライド:
クラス java.net.URLConnection 内の getContentType

getDate

public long getDate()
Return the last modified date.
オーバーライド:
クラス java.net.URLConnection 内の getDate

getLastModified

public long getLastModified()
Return the last modified date.
オーバーライド:
クラス java.net.URLConnection 内の getLastModified

getHeaderField

public java.lang.String getHeaderField(java.lang.String name)
Returns the name of the specified header field.
オーバーライド:
クラス java.net.URLConnection 内の getHeaderField

getContent

public java.lang.Object getContent()
                            throws java.io.IOException
Get object content.
オーバーライド:
クラス java.net.URLConnection 内の getContent

getContent

public java.lang.Object getContent(java.lang.Class[] classes)
                            throws java.io.IOException
Get object content.
オーバーライド:
クラス java.net.URLConnection 内の getContent

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Get input stream.
オーバーライド:
クラス java.net.URLConnection 内の getInputStream

getPermission

public java.security.Permission getPermission()
Get the Permission for this URL
オーバーライド:
クラス java.net.URLConnection 内の getPermission

list

public java.util.Enumeration list()
                           throws java.io.IOException
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.


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.