|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.owasp.encoder.Encoders
public final class Encoders
Encoders -- Public factory method for obtaining instances of Encoders. Classes implementing the encoders are not directly exposed as part of the API since encoding strategies are subject to change. In many cases encoders will share the same implementation, but have different internal flags for how to handle varied content. For example the XML_CONTENT and XML_ATTRIBUTE contexts may currently share the same class with each instances having a different set of flags. Future version may optimize them into different classes.
All encoders returned by the factory are thread-safe.
| Method Summary | |
|---|---|
static Encoder |
forName(String contextName)
Returns a new instance of an Encoder for the specified context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String HTML
public static final String HTML_CONTENT
public static final String HTML_ATTRIBUTE
public static final String HTML_UNQUOTED_ATTRIBUTE
public static final String XML
public static final String XML_CONTENT
public static final String XML_ATTRIBUTE
public static final String XML_COMMENT
public static final String CDATA
public static final String CSS_STRING
public static final String CSS_URL
public static final String JAVA
public static final String JAVASCRIPT
public static final String JAVASCRIPT_ATTRIBUTE
public static final String JAVASCRIPT_BLOCK
public static final String JAVASCRIPT_SOURCE
public static final String URI
public static final String URI_COMPONENT
| Method Detail |
|---|
public static Encoder forName(String contextName)
throws NullPointerException,
UnsupportedContextException
contextName - the context name (one of the String constants
defined in this class)
NullPointerException - if contextName is null
UnsupportedContextException - if contextName is not
recognized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||