|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TerminalExtension
An interface to a terminal specific extension of a servlet request. It is saved as a request attribute using its class name.
| Field Summary | |
|---|---|
static String |
KEY
The extension key. |
| Method Summary | |
|---|---|
String |
getContentType()
Gets the preferred MIME type of the terminal. |
String |
getContentTypeVariant()
Gets the content type variant of the terminal. |
String |
getDefaultExtension()
Gets the default file extension of the MIME type of the terminal. |
String |
getMobileStationIsdn()
Gets the MSISDN (phone number) of the terminal. |
String |
getTerminalId()
Gets the terminal id. |
Locale |
getTerminalLocale()
Gets the current locale with the terminal specific variants. |
Locale |
getTerminalLocale(Locale locale)
Gets the specified locale with the terminal specific variants. |
String |
getUserAgentVariant()
Gets the user agent variant of the terminal. |
void |
setContentTypeVariant(String variant)
Sets the content type variant of the terminal. |
void |
setUserAgentVariant(String variant)
Sets the user agent variant of the terminal. |
| Field Detail |
|---|
static final String KEY
| Method Detail |
|---|
String getTerminalId()
String getMobileStationIsdn()
String getContentType()
String getDefaultExtension()
String getUserAgentVariant()
void setUserAgentVariant(String variant)
The variant is a token matching request specific user agent information unless explicitly specified.
variant - the user agent variant.String getContentTypeVariant()
void setContentTypeVariant(String variant)
The variant is a token matching the subtype of the MIME type of the terminal unless explicitly specified.
variant - the content type variant (HTML, WML, SMS, ...).Locale getTerminalLocale()
Locale getTerminalLocale(Locale locale)
locale - the locale to adjust.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||