org.talika.tarsis.command.view
Interface View

All Known Implementing Classes:
ViewImpl

public interface View

Interface that defines a view in Tarsis MVC Framework.

The command view is the piece of software responsible of presentation logic. A view is executed after when command action is finished.
Views are servlets, JSP pages, HTML pages and any other web artifact which we can forward, redirect or include.

View type can be FORWARD, REDIRECT or INCLUDE depending on invokation's method. FORWARD view is invoked using dispatch method, REDIRECT view is invoked using sendRedirect method and INCLUDE using include method.

Version:
$Revision: 121 $
Author:
Jose M. Palomar
See Also:
Command, Action

Field Summary
static java.lang.String DEFAULT_VIEW_NAME
          Default view name.
static int FORWARD
          Forward view type.
static int INCLUDE
          Include view type.
static java.lang.String INPUT_VIEW_NAME
          Input view name.
static int REDIRECT
          Redirect view type.
 
Method Summary
 java.lang.String getName()
          Returns name of view.
 java.lang.String getPath()
          Returns path fo view.
 int getType()
          Returns view's type.
 

Field Detail

FORWARD

public static final int FORWARD
Forward view type.

See Also:
Constant Field Values

REDIRECT

public static final int REDIRECT
Redirect view type.

See Also:
Constant Field Values

INCLUDE

public static final int INCLUDE
Include view type.

See Also:
Constant Field Values

DEFAULT_VIEW_NAME

public static final java.lang.String DEFAULT_VIEW_NAME
Default view name.

See Also:
Constant Field Values

INPUT_VIEW_NAME

public static final java.lang.String INPUT_VIEW_NAME
Input view name.

See Also:
Constant Field Values
Method Detail

getType

public int getType()
Returns view's type.

Returns:
int view's type.

getName

public java.lang.String getName()
Returns name of view.

Returns:
String name of view.

getPath

public java.lang.String getPath()
Returns path fo view.

Returns:
String path fo view.


Copyright © 2002-2005 Talika Open Source Group. All Rights Reserved.