Class URI.DefaultCharsetChanged
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.sling.api.SlingException
org.apache.sling.resourceresolver.impl.helper.URI.DefaultCharsetChanged
- All Implemented Interfaces:
 Serializable
- Enclosing class:
 - URI
 
The charset-changed normal operation to represent to be required to alert
 to user the fact the default charset is changed.
- See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDocument charset changed.static final intProtocol charset changed.static final intNo specified reason code. - 
Constructor Summary
ConstructorsConstructorDescriptionDefaultCharsetChanged(int reasonCode, String reason) The constructor with a reason string and its code arguments. - 
Method Summary
Modifier and TypeMethodDescriptionGet the reason message.intGet the reason code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Field Details
- 
UNKNOWN
public static final int UNKNOWNNo specified reason code.- See Also:
 
 - 
PROTOCOL_CHARSET
public static final int PROTOCOL_CHARSETProtocol charset changed.- See Also:
 
 - 
DOCUMENT_CHARSET
public static final int DOCUMENT_CHARSETDocument charset changed.- See Also:
 
 
 - 
 - 
Constructor Details
- 
DefaultCharsetChanged
The constructor with a reason string and its code arguments.- Parameters:
 reasonCode- the reason codereason- the reason
 
 - 
 - 
Method Details
- 
getReasonCode
public int getReasonCode()Get the reason code.- Returns:
 - the reason code
 
 - 
getReason
Get the reason message.- Returns:
 - the reason message
 
 
 -