org.apache.shale.remoting
Class Mechanism

java.lang.Object
  extended by org.apache.shale.remoting.Mechanism

public final class Mechanism
extends Object

Typesafe enumeration of the legal values that may be specified for the mechanism property of a Mapping. Note that these values are advisory only -- the framework has no concept of what technique is actually employed to translate the incomfing view identifier into content to be supplied as a response.


Field Summary
static Mechanism CLASS_RESOURCE
          Mechanism indicating that the processor should serve a static resource from the classpath of this web application.
static Mechanism DYNAMIC_RESOURCE
          Mechanism indicating that the processor should dynamically calculate the content type, and contents, of the response to be created.
static Mechanism OTHER_RESOURCE
          Mechanism indicating that an unspecified mechanism will be used to provide the content for the response.
static Mechanism WEBAPP_RESOURCE
          Mechanism indicating that the processor should serve a static resource from the web application archive of this web application.
 
Method Summary
 String toString()
          Return a string representation of this mechansim.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_RESOURCE

public static final Mechanism CLASS_RESOURCE

Mechanism indicating that the processor should serve a static resource from the classpath of this web application.


WEBAPP_RESOURCE

public static final Mechanism WEBAPP_RESOURCE

Mechanism indicating that the processor should serve a static resource from the web application archive of this web application.


DYNAMIC_RESOURCE

public static final Mechanism DYNAMIC_RESOURCE

Mechanism indicating that the processor should dynamically calculate the content type, and contents, of the response to be created.


OTHER_RESOURCE

public static final Mechanism OTHER_RESOURCE

Mechanism indicating that an unspecified mechanism will be used to provide the content for the response.

Method Detail

toString

public String toString()

Return a string representation of this mechansim.

Overrides:
toString in class Object


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.