| |
|
| java.lang.Object org.restlet.Uniform org.restlet.Restlet org.restlet.Filter org.restlet.Transformer
Field Summary | |
final public static int | MODE_REQUEST Mode that transforms request entities before their handling by the
attached Restlet. | final public static int | MODE_RESPONSE Mode that transforms response entities after their handling by the
attached Restlet. |
MODE_REQUEST | final public static int MODE_REQUEST(Code) | | Mode that transforms request entities before their handling by the
attached Restlet.
|
MODE_RESPONSE | final public static int MODE_RESPONSE(Code) | | Mode that transforms response entities after their handling by the
attached Restlet.
|
Transformer | public Transformer(int mode, Representation transformSheet)(Code) | | Constructor.
Parameters: mode - The transformation mode. Parameters: transformSheet - The XSLT transform sheet to apply to message entities. |
getMode | public int getMode()(Code) | | Returns the transformation mode. See MODE_* constants.
The transformation mode. |
getResultCharacterSet | public CharacterSet getResultCharacterSet()(Code) | | Returns the character set of the result representation. The default value
is null.
The character set of the result representation. |
getResultEncodings | public List<Encoding> getResultEncodings()(Code) | | Returns the encoding of the result representation. The default value is
null.
The encoding of the result representation. |
getResultLanguages | public List<Language> getResultLanguages()(Code) | | Returns the languages of the result representation.
The language of the result representation. |
getResultMediaType | public MediaType getResultMediaType()(Code) | | Returns the media type of the result representation. The default value is
MediaType.APPLICATION_XML.
The media type of the result representation. |
getTransformSheet | public Representation getTransformSheet()(Code) | | Returns the XSLT transform sheet to apply to message entities.
The XSLT transform sheet to apply to message entities. |
setMode | public void setMode(int mode)(Code) | | Sets the transformation mode. See MODE_* constants.
Parameters: mode - The transformation mode. |
setResultCharacterSet | public void setResultCharacterSet(CharacterSet resultCharacterSet)(Code) | | Sets the character set of the result representation.
Parameters: resultCharacterSet - The character set of the result representation. |
setResultMediaType | public void setResultMediaType(MediaType resultMediaType)(Code) | | Sets the media type of the result representation.
Parameters: resultMediaType - The media type of the result representation. |
setTransformSheet | public void setTransformSheet(Representation transformSheet)(Code) | | Sets the XSLT transform sheet to apply to message entities.
Parameters: transformSheet - The XSLT transform sheet to apply to message entities. |
transform | public Representation transform(Representation source)(Code) | | Transforms a source XML representation by applying an XSLT transform
sheet to it.
Parameters: source - The source XML representation. The generated result representation. |
|
|
|