fi.hut.tml.xsmiles.content
Class Resource
java.lang.Object
fi.hut.tml.xsmiles.content.Resource
- public class Resource
- extends java.lang.Object
This class is a wrapper for any kind of resource that a content references.
For instance, an XML document can reference images, stylesheets, applets, objects, scripts, etc.
In future, there will also be link to cached content here.
This is also used by the XML signature MLFC to sign all referenced content.
- Author:
- Mikko Honkala
|
Constructor Summary |
Resource(java.net.URL u,
short resourcetype,
java.lang.String content)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected short type
contentType
protected java.lang.String contentType
url
protected java.net.URL url
RESOURCE_IMAGE
public static short RESOURCE_IMAGE
RESOURCE_STYLESHEET
public static short RESOURCE_STYLESHEET
RESOURCE_SCRIPT
public static short RESOURCE_SCRIPT
RESOURCE_APPLET
public static short RESOURCE_APPLET
RESOURCE_OBJECT
public static short RESOURCE_OBJECT
RESOURCE_UNKNOWN
public static short RESOURCE_UNKNOWN
RESOURCE_DO_NOT_STORE
public static short RESOURCE_DO_NOT_STORE
Resource
public Resource(java.net.URL u,
short resourcetype,
java.lang.String content)
getType
public short getType()
getURL
public java.net.URL getURL()
getContentType
public java.lang.String getContentType()
X-Smiles 1.2