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.
Modifier and Type | Field and Description |
---|---|
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. |
public static final Mechanism CLASS_RESOURCE
Mechanism
indicating that the processor should serve a static
resource from the classpath of this web application.
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.
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.
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.