|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.engine.encoders.AssetEncoder
public class AssetEncoder
Encoder for the AssetService that uses servlet path info
to store the resource digest and the path to the resource.
| Constructor Summary | |
|---|---|
AssetEncoder()
|
|
| Method Summary | |
|---|---|
void |
decode(ServiceEncoding encoding)
Invoked to decode a request. |
void |
encode(ServiceEncoding encoding)
Invoked by the LinkFactory to encode the request. |
void |
setPath(java.lang.String path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssetEncoder()
| Method Detail |
|---|
public void setPath(java.lang.String path)
public void encode(ServiceEncoding encoding)
ServiceEncoderLinkFactory to encode the request.
Encoding is the process of modifying the encoding object to represent the same data in a
different format; the canoncial example is to replace the
ServiceConstants.PAGEand
ServiceConstants.SERVICEquery parameters with a servlet
path (i.e., "/Home.html", if the ".html" extension is mapped to the page service).
The LinkFactory iterates over a collection of
encoders, stopping once the ServiceRequestEncoding is modified in any way.
encode in interface ServiceEncoderpublic void decode(ServiceEncoding encoding)
ServiceEncoder
decode in interface ServiceEncoder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||