org.mmbase.bridge.util
Class NodeURLStreamHandlerFactory.NodeConnection
java.lang.Object
java.net.URLConnection
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
| 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 |
node
Node node
name
final String name
type
final int type
parent
final ResourceLoader parent
NodeURLStreamHandlerFactory.NodeConnection
NodeURLStreamHandlerFactory.NodeConnection(ResourceLoader parent,
URL url,
String name,
int t)
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