Package org.takes.rs
Class RsWithType.Xml
- java.lang.Object
-
- org.takes.rs.RsWrap
-
- org.takes.rs.RsWithType.Xml
-
- Enclosing class:
- RsWithType
public static final class RsWithType.Xml extends RsWrap
Response decorator, with content type text/xml.The class is immutable and thread-safe.
- Since:
- 0.30
-
-
Constructor Summary
Constructors Constructor Description Xml(Response res)
Constructs aXML
that will add text/xml as the content type header to the response.Xml(Response res, Charset charset)
Constructs aXML
that will add text/xml as the content type header to the response using the specified charset as charset parameter value.
-
-
-
Constructor Detail
-
Xml
public Xml(Response res)
Constructs aXML
that will add text/xml as the content type header to the response.- Parameters:
res
- Original response
-
-