org.mmbase.bridge.util
Class NodeURLStreamHandlerFactory.NodeConnection

Package class diagram package NodeURLStreamHandlerFactory.NodeConnection
java.lang.Object
  extended by java.net.URLConnection
      extended by org.mmbase.bridge.util.NodeURLStreamHandlerFactory.NodeConnection
Enclosing class:
NodeURLStreamHandlerFactory

protected static class NodeURLStreamHandlerFactory.NodeConnection
extends URLConnection

A URLConnection based on an MMBase node.

See Also:
FileConnection

Field Summary
(package private)  String name
           
(package private)  Node node
           
(package private)  ResourceLoader parent
           
(package private)  int type
           
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
NodeURLStreamHandlerFactory.NodeConnection(ResourceLoader parent, URL url, String name, int t)
           
 
Method Summary
 void connect()
           
 boolean getDoInput()
           
 boolean getDoOutput()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 OutputStream getOutputStream()
           
 Node getResourceNode()
          Gets the Node associated with this URL if there is one.
 String toString()
           
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

node

Node node

name

final String name

type

final int type

parent

final ResourceLoader parent
Constructor Detail

NodeURLStreamHandlerFactory.NodeConnection

NodeURLStreamHandlerFactory.NodeConnection(ResourceLoader parent,
                                           URL url,
                                           String name,
                                           int t)
Method Detail

connect

public void connect()
             throws IOException
Specified by:
connect in class URLConnection
Throws:
IOException

getResourceNode

public Node getResourceNode()
Gets the Node associated with this URL if there is one.

Returns:
MMObjectNode or null

getDoInput

public boolean getDoInput()
Overrides:
getDoInput in class URLConnection

getDoOutput

public boolean getDoOutput()
Overrides:
getDoOutput in class URLConnection

getInputStream

public InputStream getInputStream()
                           throws IOException
Overrides:
getInputStream in class URLConnection
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Overrides:
getOutputStream in class URLConnection
Throws:
IOException

getLastModified

public long getLastModified()
Overrides:
getLastModified in class URLConnection

toString

public String toString()
Overrides:
toString in class URLConnection


MMBase2 Bridge 2.0-SNAPSHOT - 2013-03-30T06:34