All Packages Class Hierarchy This Package Previous Next Index
Interface com.sdi.wap.View
- public interface View
The view interface defines the abstract API for the dynamic states
of a web appolication. Each state is represented by a subclass of
com.sdi.State which implements most of the required methods. The
abstract method, controller(), is defined by each subclass to
provide the state's controller. The states view is provided by
private methods that return html strings to the controller.
- See Also:
- State, Page
-
controller()
- Abstract controller method to be implemented by all subclasses
-
encodePageRef(Page, String[], Validatable[])
- URL-encode a page reference
-
forward(Page)
- Forward this request to the designated page
-
forward(String)
- Forward this request to the designated page
-
getAttribute(String)
- Get a session attribute.
-
getCookie(String)
- Get cookie value
-
getField(String, Field)
-
-
getParameter(String, Field)
- Get a request parameter.
-
getRequest()
-
-
getRequestDispatcher(String)
- Return the requestDispatcher for the provided context-relative url
-
getResponse()
-
-
getSession()
-
-
getWriter()
- Get the printwriter for this view
-
include(Page)
- Forward this request to the designated page
-
include(String)
- Forward this request to this page.
-
redirect(Page)
- Forward this request to the designated page
-
redirect(String)
- Forward this request to the designated page
-
send(String)
-
-
sendPage(String)
-
-
sendPageClose()
-
-
sendPageOpen()
-
-
setAttribute(String, Object)
- Insert the method's description here.
-
setCookie(String, String)
- Set a cookie to the provided value
controller
public abstract void controller() throws Exception
- Abstract controller method to be implemented by all subclasses
encodePageRef
public abstract String encodePageRef(Page page,
String argNames[],
Validatable argValues[])
- URL-encode a page reference
- Parameters:
- Page - page the referenced page
- String[] - argNames: the argument namelist or null
- Field[] - argValues: the argument values or null.
forward
public abstract void forward(Page toPage) throws ServletException, IOException
- Forward this request to the designated page
- Parameters:
- Page - toPage
forward
public abstract void forward(String relPath) throws ServletException, IOException
- Forward this request to the designated page
- Parameters:
- Page - toPage
getAttribute
public abstract Object getAttribute(String key) throws IOException
- Get a session attribute.
getCookie
public abstract String getCookie(String cookieName)
- Get cookie value
- Parameters:
- String - cookieName
getField
public abstract Field getField(String key,
Field defaultValue) throws Exception
getParameter
public abstract String getParameter(String key,
Field defaultValue) throws IOException
- Get a request parameter. If null, returns defaultValue.toString()
getRequest
public abstract HttpServletRequest getRequest()
getRequestDispatcher
public abstract RequestDispatcher getRequestDispatcher(String relativeUrl)
- Return the requestDispatcher for the provided context-relative url
- Returns:
- RequestDispatcher
getResponse
public abstract HttpServletResponse getResponse()
getSession
public abstract HttpSession getSession()
getWriter
public abstract PrintWriter getWriter() throws IOException
- Get the printwriter for this view
include
public abstract void include(Page toPage) throws ServletException, IOException
- Forward this request to the designated page
- Parameters:
- Page - toPage
include
public abstract void include(String relPath) throws ServletException, IOException
- Forward this request to this page.
- Parameters:
- Page - toPage
redirect
public abstract void redirect(Page toPage) throws ServletException, IOException
- Forward this request to the designated page
- Parameters:
- Page - toPage
redirect
public abstract void redirect(String absPath) throws ServletException, IOException
- Forward this request to the designated page
- Parameters:
- Page - toPage
send
public abstract void send(String s) throws IOException
sendPage
public abstract void sendPage(String s) throws Exception
sendPageClose
public abstract void sendPageClose() throws Exception
sendPageOpen
public abstract void sendPageOpen() throws Exception
setAttribute
public abstract void setAttribute(String key,
Object value)
- Insert the method's description here.
Creation date: (05/21/00 11:14:47)
setCookie
public abstract void setCookie(String cookieName,
String cookieValue)
- Set a cookie to the provided value
- Parameters:
- String - cookieName
- String - cookieValue
All Packages Class Hierarchy This Package Previous Next Index