|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
org.loom.tags.AbstractTag
org.loom.tags.core.AbstractWebResourceTag
public abstract class AbstractWebResourceTag
Tag that creates a link to a script or css file. There are two common uses for this tag: <l:script src="/js/myfile.js"/> This tag will create a normal script tag, pointing to the specified resource with the webapp prefix prepended. <l:script resource="resource_path"/> When specifying the resource, it will use a resource bundle configured using spring.
| Field Summary | |
|---|---|
static java.lang.Integer |
IE_ANY
include the library with any version of IE |
protected WebResourceBundleRepository |
webResourceBundleRepository
|
| Fields inherited from class org.loom.tags.AbstractTag |
|---|
expressionLanguageProxy, loomServletRequestFactory, out, repository, request, response |
| Constructor Summary | |
|---|---|
AbstractWebResourceTag()
|
|
| Method Summary | |
|---|---|
AbstractWebResourceTag |
addParameter(java.lang.String name,
java.lang.Object value)
Adds a parameter to the resulting url |
void |
doTagImpl()
The method that must be implemented by the child class |
protected void |
endTag()
Does the tag cleanup, if any. |
protected java.lang.String |
getContents()
|
java.lang.String |
getResource()
|
protected java.lang.String |
getType()
|
UrlBuilder |
getUrl()
|
protected UrlBuilder |
getUrlBuilder()
|
protected void |
initTag()
Initializes the tag attributes |
abstract void |
printTag()
print just the tag |
void |
setAction(java.lang.String action)
The Action to invoke. |
void |
setEvent(java.lang.String event)
The Event to invoke. |
void |
setHostname(java.lang.String serverName)
The server name to use. |
void |
setIeLessThan(java.lang.String ie)
|
void |
setMapping(java.lang.String mapping)
The mapping as action.event. |
void |
setPort(java.lang.Integer port)
The port to use. |
protected void |
setRawUrl(java.lang.String rawUrl)
|
void |
setRelative(boolean relative)
true if the url is relative (do not render schema, server or port), false to render a full URL. |
void |
setRequest(LoomServletRequest request)
|
void |
setResource(java.lang.String resourceName)
|
void |
setScheme(java.lang.String scheme)
The scheme to use. |
protected void |
setType(java.lang.String type)
|
void |
setUrl(UrlBuilder url)
|
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Inject protected WebResourceBundleRepository webResourceBundleRepository
public static final java.lang.Integer IE_ANY
| Constructor Detail |
|---|
public AbstractWebResourceTag()
| Method Detail |
|---|
public void setRequest(LoomServletRequest request)
setRequest in class AbstractTagprotected void initTag()
AbstractTag
initTag in class AbstractTag
public void doTagImpl()
throws javax.servlet.jsp.JspException,
java.io.IOException
AbstractTag
doTagImpl in class AbstractTagjavax.servlet.jsp.JspException
java.io.IOException
public abstract void printTag()
throws javax.servlet.jsp.JspException,
java.io.IOException
javax.servlet.jsp.JspException
java.io.IOExceptionprotected void endTag()
AbstractTag
endTag in class AbstractTagprotected java.lang.String getContents()
@Attribute public void setAction(java.lang.String action)
action - The unqualified action name, with the "Action" suffix removed. The fully qualified class name can also be used.@Attribute public void setEvent(java.lang.String event)
param tag or param-
prefixed attribute will be appended.
@Attribute public void setMapping(java.lang.String mapping)
action.event. This method is equivalent to
setting action and event separately.
@Attribute public void setRelative(boolean relative)
@Attribute public void setScheme(java.lang.String scheme)
scheme - the scheme to use. Examples are: "http", "https"@Attribute public void setHostname(java.lang.String serverName)
@Attribute public void setPort(java.lang.Integer port)
port - the port to use. Examples are: 80, 443public void setResource(java.lang.String resourceName)
public AbstractWebResourceTag addParameter(java.lang.String name,
java.lang.Object value)
ParameterContainer
addParameter in interface ParameterContainername - the name of the parametervalue - the value of the parameter
public void setIeLessThan(java.lang.String ie)
protected void setRawUrl(java.lang.String rawUrl)
public UrlBuilder getUrl()
public void setUrl(UrlBuilder url)
public java.lang.String getResource()
protected java.lang.String getType()
protected void setType(java.lang.String type)
protected UrlBuilder getUrlBuilder()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||