org.opengts.war.tools
Class CommonServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.opengts.war.tools.CommonServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- Data, Data, Data, Data, Data, Service, Track
public class CommonServlet
- extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
Method Summary |
static void |
println(java.io.PrintWriter out,
java.lang.String html)
|
static void |
setResponseContentType(javax.servlet.http.HttpServletResponse response,
java.lang.String mimeType)
Sets the content type for the specified 'response'. |
static void |
setResponseContentType(javax.servlet.http.HttpServletResponse response,
java.lang.String mimeType,
java.lang.String charSet)
Sets the content type for the specified 'response'. |
static void |
writeHTML(java.io.PrintWriter out,
java.lang.String[] html)
|
static void |
writePageFrame(RequestProperties reqState,
HTMLOutput html)
|
static void |
writePageFrame(RequestProperties reqState,
java.lang.String bodyOnLoad,
java.lang.String bodyOnUnload,
HTMLOutput styleSheet,
HTMLOutput javascript,
HTMLOutput navigation,
HTMLOutput contents)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARM_PAGE
public static final java.lang.String PARM_PAGE
- See Also:
- Constant Field Values
PARM_COMMAND
public static final java.lang.String PARM_COMMAND
- See Also:
- Constant Field Values
PARM_ARGUMENT
public static final java.lang.String PARM_ARGUMENT
- See Also:
- Constant Field Values
PARM_CONTENT
public static final java.lang.String PARM_CONTENT
- See Also:
- Constant Field Values
PARM_LOCALE
public static final java.lang.String PARM_LOCALE
- See Also:
- Constant Field Values
HOST_PROPERTIES_ID
public static final java.lang.String HOST_PROPERTIES_ID
- See Also:
- Constant Field Values
HOST_PROPERTIES
public static final java.lang.String HOST_PROPERTIES
- See Also:
- Constant Field Values
DEFAULT_HOST_PROPERTIES_ID
public static final java.lang.String DEFAULT_HOST_PROPERTIES_ID
- See Also:
- Constant Field Values
SECTION_REQUESTPROPS
public static final java.lang.String SECTION_REQUESTPROPS
- See Also:
- Constant Field Values
SECTION_STYLESHEET
public static final java.lang.String SECTION_STYLESHEET
- See Also:
- Constant Field Values
SECTION_JAVASCRIPT
public static final java.lang.String SECTION_JAVASCRIPT
- See Also:
- Constant Field Values
SECTION_PAGE_NAME
public static final java.lang.String SECTION_PAGE_NAME
- See Also:
- Constant Field Values
SECTION_PAGE_URL
public static final java.lang.String SECTION_PAGE_URL
- See Also:
- Constant Field Values
SECTION_CSSFILE
public static final java.lang.String SECTION_CSSFILE
- See Also:
- Constant Field Values
SECTION_BODY_ONLOAD
public static final java.lang.String SECTION_BODY_ONLOAD
- See Also:
- Constant Field Values
SECTION_BODY_ONUNLOAD
public static final java.lang.String SECTION_BODY_ONUNLOAD
- See Also:
- Constant Field Values
SECTION_BANNER_WIDTH
public static final java.lang.String SECTION_BANNER_WIDTH
- See Also:
- Constant Field Values
SECTION_BANNER_STYLE
public static final java.lang.String SECTION_BANNER_STYLE
- See Also:
- Constant Field Values
SECTION_BANNER_IMAGE
public static final java.lang.String SECTION_BANNER_IMAGE
- See Also:
- Constant Field Values
SECTION_BANNER_IMAGE_SOURCE
public static final java.lang.String SECTION_BANNER_IMAGE_SOURCE
- See Also:
- Constant Field Values
SECTION_BANNER_IMAGE_WIDTH
public static final java.lang.String SECTION_BANNER_IMAGE_WIDTH
- See Also:
- Constant Field Values
SECTION_BANNER_IMAGE_HEIGHT
public static final java.lang.String SECTION_BANNER_IMAGE_HEIGHT
- See Also:
- Constant Field Values
SECTION_NAVIGATION
public static final java.lang.String SECTION_NAVIGATION
- See Also:
- Constant Field Values
SECTION_CONTENT_CLASS_TABLE
public static final java.lang.String SECTION_CONTENT_CLASS_TABLE
- See Also:
- Constant Field Values
SECTION_CONTENT_CLASS_CELL
public static final java.lang.String SECTION_CONTENT_CLASS_CELL
- See Also:
- Constant Field Values
SECTION_CONTENT_CLASS_MESSAGE
public static final java.lang.String SECTION_CONTENT_CLASS_MESSAGE
- See Also:
- Constant Field Values
SECTION_CONTENT_ID_MESSAGE
public static final java.lang.String SECTION_CONTENT_ID_MESSAGE
- See Also:
- Constant Field Values
SECTION_CONTENT_MENUBAR
public static final java.lang.String SECTION_CONTENT_MENUBAR
- See Also:
- Constant Field Values
SECTION_CONTENT_BODY
public static final java.lang.String SECTION_CONTENT_BODY
- See Also:
- Constant Field Values
SECTION_CONTENT_MESSAGE
public static final java.lang.String SECTION_CONTENT_MESSAGE
- See Also:
- Constant Field Values
SECTION_CONTENT_HTML
public static final java.lang.String SECTION_CONTENT_HTML
- See Also:
- Constant Field Values
CSS_TEXT_INPUT
public static final java.lang.String CSS_TEXT_INPUT
- See Also:
- Constant Field Values
CSS_TEXT_READONLY
public static final java.lang.String CSS_TEXT_READONLY
- See Also:
- Constant Field Values
CSS_TEXT_ONCLICK
public static final java.lang.String CSS_TEXT_ONCLICK
- See Also:
- Constant Field Values
CSS_TEXTAREA_INPUT
public static final java.lang.String CSS_TEXTAREA_INPUT
- See Also:
- Constant Field Values
CSS_TEXTAREA_READONLY
public static final java.lang.String CSS_TEXTAREA_READONLY
- See Also:
- Constant Field Values
CSS_MENU_TITLE
public static final java.lang.String CSS_MENU_TITLE
- See Also:
- Constant Field Values
CSS_MENU_INSTRUCTIONS
public static final java.lang.String CSS_MENU_INSTRUCTIONS
- See Also:
- Constant Field Values
CSS_MENU_DESCRIPTION
public static final java.lang.String CSS_MENU_DESCRIPTION
- See Also:
- Constant Field Values
CSS_CONTENT_FRAME
public static final java.lang.String[] CSS_CONTENT_FRAME
CSS_CONTENT_MENU
public static final java.lang.String[] CSS_CONTENT_MENU
CSS_CONTENT_MAP
public static final java.lang.String[] CSS_CONTENT_MAP
CSS_CONTENT_MAP_FULL
public static final java.lang.String[] CSS_CONTENT_MAP_FULL
CSS_MENUBAR_OK
public static final java.lang.String[] CSS_MENUBAR_OK
CSS_MESSAGE
public static final java.lang.String[] CSS_MESSAGE
CSS_CONTENT_MESSAGE
public static final java.lang.String CSS_CONTENT_MESSAGE
- See Also:
- Constant Field Values
CSS_ADMIN_SELECT_TITLE
public static final java.lang.String CSS_ADMIN_SELECT_TITLE
- See Also:
- Constant Field Values
CSS_ADMIN_SELECT_TABLE
public static final java.lang.String CSS_ADMIN_SELECT_TABLE
- See Also:
- Constant Field Values
CSS_ADMIN_TABLE_HEADER_ROW
public static final java.lang.String CSS_ADMIN_TABLE_HEADER_ROW
- See Also:
- Constant Field Values
CSS_ADMIN_TABLE_HEADER_COL
public static final java.lang.String CSS_ADMIN_TABLE_HEADER_COL
- See Also:
- Constant Field Values
CSS_ADMIN_TABLE_HEADER_COL_NS
public static final java.lang.String CSS_ADMIN_TABLE_HEADER_COL_NS
- See Also:
- Constant Field Values
CSS_ADMIN_TABLE_HEADER_COL_SEL
public static final java.lang.String CSS_ADMIN_TABLE_HEADER_COL_SEL
- See Also:
- Constant Field Values
CSS_ADMIN_TABLE_BODY_ROW_ODD
public static final java.lang.String CSS_ADMIN_TABLE_BODY_ROW_ODD
- See Also:
- Constant Field Values
CSS_ADMIN_TABLE_BODY_ROW_EVEN
public static final java.lang.String CSS_ADMIN_TABLE_BODY_ROW_EVEN
- See Also:
- Constant Field Values
CSS_ADMIN_TABLE_BODY_COL
public static final java.lang.String CSS_ADMIN_TABLE_BODY_COL
- See Also:
- Constant Field Values
CSS_ADMIN_TABLE_BODY_COL_SEL
public static final java.lang.String CSS_ADMIN_TABLE_BODY_COL_SEL
- See Also:
- Constant Field Values
CSS_ADMIN_VIEW_TABLE
public static final java.lang.String CSS_ADMIN_VIEW_TABLE
- See Also:
- Constant Field Values
CSS_ADMIN_VIEW_TABLE_HEADER
public static final java.lang.String CSS_ADMIN_VIEW_TABLE_HEADER
- See Also:
- Constant Field Values
CSS_ADMIN_VIEW_TABLE_DATA
public static final java.lang.String CSS_ADMIN_VIEW_TABLE_DATA
- See Also:
- Constant Field Values
CSS_ADMIN_VIEW_TABLE_TEXTAREA
public static final java.lang.String CSS_ADMIN_VIEW_TABLE_TEXTAREA
- See Also:
- Constant Field Values
CSS_ADMIN_COMBO_BOX
public static final java.lang.String CSS_ADMIN_COMBO_BOX
- See Also:
- Constant Field Values
ID_CONTENT_MESSAGE
public static final java.lang.String ID_CONTENT_MESSAGE
- See Also:
- Constant Field Values
CommonServlet
public CommonServlet()
println
public static void println(java.io.PrintWriter out,
java.lang.String html)
throws java.io.IOException
- Throws:
java.io.IOException
writeHTML
public static void writeHTML(java.io.PrintWriter out,
java.lang.String[] html)
throws java.io.IOException
- Throws:
java.io.IOException
setResponseContentType
public static void setResponseContentType(javax.servlet.http.HttpServletResponse response,
java.lang.String mimeType)
- Sets the content type for the specified 'response'. This method appends the
default character set to the mim content type before calling 'response.setContentType(...)'
- Parameters:
response
- The HttpServletResponse instancemimeType
- The mime type
setResponseContentType
public static void setResponseContentType(javax.servlet.http.HttpServletResponse response,
java.lang.String mimeType,
java.lang.String charSet)
- Sets the content type for the specified 'response'. This method appends the
default character set to the mim content type before calling 'response.setContentType(...)'
- Parameters:
response
- The HttpServletResponse instancemimeType
- The mime typecharSet
- The character encoding
writePageFrame
public static void writePageFrame(RequestProperties reqState,
HTMLOutput html)
throws java.io.IOException
- Throws:
java.io.IOException
writePageFrame
public static void writePageFrame(RequestProperties reqState,
java.lang.String bodyOnLoad,
java.lang.String bodyOnUnload,
HTMLOutput styleSheet,
HTMLOutput javascript,
HTMLOutput navigation,
HTMLOutput contents)
throws java.io.IOException
- Throws:
java.io.IOException