|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.loom.action.AbstractAction
org.loom.action.support.ResourcesAction
@SSLPolicy(value=DO_NOT_MODIFY) public class ResourcesAction
Retrieves a static resource, such as a javascript/css file. It will set the ETag as the MD5 of the response contents.
| Field Summary | |
|---|---|
static java.lang.String |
BUNDLE
the resource bundle name |
static java.lang.String |
MD5
the name of the md5 GET parameter |
static java.lang.String |
RESOURCE
the name of the resource GET parameter. |
| Constructor Summary | |
|---|---|
ResourcesAction()
|
|
| Method Summary | |
|---|---|
CacheControl |
cacheCssResource()
|
CacheControl |
cacheMessagesRepository()
If a MD5 attribute has been passed and it's the same of the actual MessageRepository contents, set the response to cache forever. |
CacheControl |
cacheResource()
|
Resolution |
getCssResource()
|
Resolution |
getJsMessagesRepository()
Converts the MessagesRepository instance to a javascript JSON presentation. |
Resolution |
getResource()
If Config.development = false, retrieves an entire concatenated bundle and returns it gzipped (if the browser supports gzip). |
| Methods inherited from class org.loom.action.AbstractAction |
|---|
addError, addError, addError, addMessage, error, error, forward, forward, forwardWithLocale, getContext, getMessagesRepository, getParam, getPropertyAsString, getRequest, getResponse, getSession, getSession, hasAnyError, hasAnyError, info, json, redirect, redirect, redirect, redirect, send, send, send, setContext, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RESOURCE
public static final java.lang.String BUNDLE
public static final java.lang.String MD5
| Constructor Detail |
|---|
public ResourcesAction()
| Method Detail |
|---|
@Cache(on="getJsMessagesRepository") public CacheControl cacheMessagesRepository()
@Event(defaultEvent=true) public Resolution getJsMessagesRepository()
MessagesRepository instance to a javascript JSON presentation.
If the provided MD5 parameter is the same of the current one, the response will be set
to cache forever.
MessagesRepository for this locale
@Cache(on="getResource")
public CacheControl cacheResource()
throws java.io.IOException
java.io.IOException
public Resolution getResource()
throws java.io.FileNotFoundException
java.io.FileNotFoundException
@Cache(on="getCssResource")
public CacheControl cacheCssResource()
throws java.io.IOException
java.io.IOException
public Resolution getCssResource()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||