|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uva.vlet.vrs.VNode
nl.uva.vlet.vrs.http.HTTPNode
public class HTTPNode
Class represents a HTTP reference
Field Summary |
---|
Fields inherited from class nl.uva.vlet.vrs.VNode |
---|
ATTR_CHARSET, ATTR_HOSTNAME, ATTR_ICON, ATTR_ISVLINK, ATTR_LOCATION, ATTR_MIMETYPE, ATTR_NAME, ATTR_PATH, ATTR_PORT, ATTR_SCHEME, ATTR_TYPE, location, vrsContext |
Constructor Summary | |
---|---|
HTTPNode(VRSContext context,
VRL loc)
|
Method Summary | |
---|---|
boolean |
exists()
Whether this node (still) exists |
java.lang.String[] |
getAttributeNames()
Get the names of the attributes this resource has |
java.lang.String |
getCharSet()
Get mimetype as reported by remote Server. |
VRL |
getHelp()
Returns simple text file or complete HTML page. |
java.io.InputStream |
getInputStream()
Create InputStream to read from this (remote) resource. |
java.lang.String |
getMimeType()
Get mimetype as reported by remote Server. |
VNode |
getParent()
Get Parent Node (if any). In the case of a graph, this method might return null, if it has multiple parents and no parent (of the multiparents) can be considered as the 'master' or 'root' parent. |
VNode[] |
getParents()
Get Parents if the Node is part of a Graph. |
java.lang.String |
getType()
Returns resource type, if it has one |
java.net.URL |
getURL()
|
Methods inherited from class nl.uva.vlet.vrs.VNode |
---|
compareTo, getAttribute, getAttributes, getAttributes, getAttributeSet, getBasename, getHostname, getIconURL, getID, getLocation, getName, getPath, getPort, getScheme, getServerAttributes, getURI, getVRL, getVRSContext, isComposite, isVirtual, isVLink, mergedGetAttributes, setLocation, setVRL, toLinkNode, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HTTPNode(VRSContext context, VRL loc) throws VlException
VlException
Method Detail |
---|
public java.lang.String getType()
VNode
getType
in class VNode
public VRL getHelp()
VNode
getHelp
in class VNode
public VNode getParent() throws VlException
VNode
getParent
in class VNode
VlException
VNode.getParents()
public VNode[] getParents() throws VlException
VNode
getParents
in class VNode
VlException
public boolean exists()
VNode
exists
in class VNode
public java.io.InputStream getInputStream() throws VlException
VStreamReadable
Note that not all protocols support 'partially' reading from a remote file. Currently both Jargon's SRB and Java's File type support Input and OutputStreams !
getInputStream
in interface VStreamReadable
VlException
InputStream
public java.lang.String getMimeType() throws VlIOException
getMimeType
in class VNode
VlIOException
MimeTypes.getMagicMimeType(byte[])
,
MimeTypes.getMimeType(String)
public java.lang.String getCharSet() throws VlIOException
getCharSet
in class VNode
VlIOException
public java.lang.String[] getAttributeNames()
getAttributeNames
in class VNode
public java.net.URL getURL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |