fi.hut.tml.xsmiles.content
Class Resource

java.lang.Object
  extended byfi.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

Field Summary
protected  java.lang.String contentType
           
static short RESOURCE_APPLET
           
static short RESOURCE_DO_NOT_STORE
           
static short RESOURCE_IMAGE
           
static short RESOURCE_OBJECT
           
static short RESOURCE_SCRIPT
           
static short RESOURCE_STYLESHEET
           
static short RESOURCE_UNKNOWN
           
protected  short type
           
protected  java.net.URL url
           
 
Constructor Summary
Resource(java.net.URL u, short resourcetype, java.lang.String content)
           
 
Method Summary
 java.lang.String getContentType()
           
 short getType()
           
 java.net.URL getURL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Resource

public Resource(java.net.URL u,
                short resourcetype,
                java.lang.String content)
Method Detail

getType

public short getType()

getURL

public java.net.URL getURL()

getContentType

public java.lang.String getContentType()


X-Smiles 1.2