Package org.apache.sling.api.request
Class ResponseUtil
- java.lang.Object
-
- org.apache.sling.api.request.ResponseUtil
-
public class ResponseUtil extends java.lang.ObjectResponse related utility methodsThis class is not intended to be extended or instantiated because it just provides static utility methods not intended to be overwritten.
- Since:
- 2.1 (Sling API Bundle 2.1.0)
-
-
Constructor Summary
Constructors Constructor Description ResponseUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringescapeXml(java.lang.String input)Escape XML textstatic @NotNull java.io.WritergetXmlEscapingWriter(@NotNull java.io.Writer target)Return a Writer that writes escaped XML text to target
-
-
-
Method Detail
-
escapeXml
public static java.lang.String escapeXml(java.lang.String input)
Escape XML text- Parameters:
input- The input text- Returns:
- The escaped text
-
getXmlEscapingWriter
@NotNull public static @NotNull java.io.Writer getXmlEscapingWriter(@NotNull @NotNull java.io.Writer target)Return a Writer that writes escaped XML text to target- Parameters:
target- writer- Returns:
- Wrapped writer escaping XML
-
-