org.apache.commons.httpclient

Class URI.DefaultCharsetChanged

public static class URI.DefaultCharsetChanged extends RuntimeException

The charset-changed normal operation to represent to be required to alert to user the fact the default charset is changed.
Field Summary
static intDOCUMENT_CHARSET
Document charset changed.
static intPROTOCOL_CHARSET
Protocol charset changed.
static intUNKNOWN
No specified reason code.
Constructor Summary
DefaultCharsetChanged(int reasonCode, String reason)
The constructor with a reason string and its code arguments.
Method Summary
StringgetReason()
Get the reason message.
intgetReasonCode()
Get the reason code.

Field Detail

DOCUMENT_CHARSET

public static final int DOCUMENT_CHARSET
Document charset changed.

PROTOCOL_CHARSET

public static final int PROTOCOL_CHARSET
Protocol charset changed.

UNKNOWN

public static final int UNKNOWN
No specified reason code.

Constructor Detail

DefaultCharsetChanged

public DefaultCharsetChanged(int reasonCode, String reason)
The constructor with a reason string and its code arguments.

Parameters: reasonCode the reason code reason the reason

Method Detail

getReason

public String getReason()
Get the reason message.

Returns: the reason message

getReasonCode

public int getReasonCode()
Get the reason code.

Returns: the reason code

Copyright (c) 1999-2005 - Apache Software Foundation