public class DirContextURLConnection
extends java.net.URLConnection
Modifier and Type | Field and Description |
---|---|
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.
|
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, toString
protected 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.URLConnection
java.io.IOException
- Object not foundpublic int getContentLength()
getContentLength
in class java.net.URLConnection
public java.lang.String getContentType()
getContentType
in class java.net.URLConnection
public long getDate()
getDate
in class java.net.URLConnection
public long getLastModified()
getLastModified
in class java.net.URLConnection
protected 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.URLConnection
public java.lang.String getHeaderField(java.lang.String name)
getHeaderField
in class java.net.URLConnection
public java.lang.Object getContent() throws java.io.IOException
getContent
in class java.net.URLConnection
java.io.IOException
public java.lang.Object getContent(java.lang.Class[] classes) throws java.io.IOException
getContent
in class java.net.URLConnection
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
public java.security.Permission getPermission()
getPermission
in class java.net.URLConnection
public java.util.Enumeration<java.lang.String> list() throws java.io.IOException
java.io.IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.