org.apache.commons.httpclient

Class URI.DefaultCharsetChanged

Enclosing Class:
URI

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 int
DOCUMENT_CHARSET
Document charset changed.
static int
PROTOCOL_CHARSET
Protocol charset changed.
static int
UNKNOWN
No specified reason code.

Constructor Summary

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

Method Summary

String
getReason()
Get the reason message.
int
getReasonCode()
Get the reason code.

Field Details

DOCUMENT_CHARSET

public static final int DOCUMENT_CHARSET
Document charset changed.
Field Value:
2

PROTOCOL_CHARSET

public static final int PROTOCOL_CHARSET
Protocol charset changed.
Field Value:
1

UNKNOWN

public static final int UNKNOWN
No specified reason code.
Field Value:
0

Constructor Details

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 Details

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