org.jboss.resteasy.plugins.providers.html
Class View

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.html.View
All Implemented Interfaces:
Renderable

public class View
extends java.lang.Object
implements Renderable


Field Summary
static java.lang.String DEFAULT_MODEL_NAME
          If left unspecified, the default name of the model in the request attributes
protected  java.util.Map<java.lang.String,java.lang.Object> model
           
protected  java.lang.String path
           
 
Constructor Summary
View(java.lang.String path)
          Creates a view without a model.
View(java.lang.String path, java.lang.Object model)
           
View(java.lang.String path, java.lang.Object model, java.lang.String modelName)
           
 
Method Summary
 java.lang.Object getModel()
           
 java.util.Map<java.lang.String,java.lang.Object> getModelMap()
           
 java.lang.String getModelName()
           
 java.lang.String getPath()
           
 void render(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Sets up the model in the request attributes, creates a dispatcher, and forwards the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MODEL_NAME

public static final java.lang.String DEFAULT_MODEL_NAME
If left unspecified, the default name of the model in the request attributes

See Also:
Constant Field Values

path

protected java.lang.String path

model

protected java.util.Map<java.lang.String,java.lang.Object> model
Constructor Detail

View

public View(java.lang.String path)
Creates a view without a model.

Parameters:
path - will be dispatched to using the servlet container; it should have a leading /.

View

public View(java.lang.String path,
            java.lang.Object model)

View

public View(java.lang.String path,
            java.lang.Object model,
            java.lang.String modelName)
Method Detail

getPath

public java.lang.String getPath()

getModelName

public java.lang.String getModelName()

getModel

public java.lang.Object getModel()

getModelMap

public java.util.Map<java.lang.String,java.lang.Object> getModelMap()

render

public void render(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException,
                   WebApplicationException
Sets up the model in the request attributes, creates a dispatcher, and forwards the request.

Specified by:
render in interface Renderable
Throws:
java.io.IOException
javax.servlet.ServletException
WebApplicationException


Copyright © 2010. All Rights Reserved.