|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
org.codehaus.groovy.grails.support.encoding.Encoderorg.codehaus.groovy.grails.support.encoding.CodecIdentifierProvider
public interface Encoder extends CodecIdentifierProvider
Interface for encoding methods.
| Method Summary | |
|---|---|
java.lang.Object
|
encode(java.lang.Object o)
Encode given input object |
boolean
|
isApplyToSafelyEncoded()
@return |
boolean
|
isSafe()
Checks if this encoder is XSS "safe". |
void
|
markEncoded(java.lang.CharSequence string)
Mark this instance as encoded with this encoder in the current EncodingStateRegistry |
| Methods inherited from interface CodecIdentifierProvider | |
|---|---|
| getCodecIdentifier |
| Method Detail |
|---|
public java.lang.Object encode(java.lang.Object o)
o - the input object
public boolean isApplyToSafelyEncoded()
true if this this codec should be applied to a buffer part that is
already encoded with a safe encoder
public boolean isSafe()
public void markEncoded(java.lang.CharSequence string)
string - a CharSequence to mark as encoded
Groovy Documentation