aerogear-controller 1.0.0.M1

org.jboss.aerogear.controller.view
Class DefaultViewResolver

java.lang.Object
  extended by org.jboss.aerogear.controller.view.DefaultViewResolver
All Implemented Interfaces:
ViewResolver

public class DefaultViewResolver
extends Object
implements ViewResolver

A ViewResolver that resolves Java Server Page (JSP) views.

The pattern for resolving a view is as follows:
 /WEB-INF/pages/TargetClassName/TargetMethodName.jsp
 

See Also:
View

Field Summary
private static String DEFAULT_PREFIX
           
private static String DEFAULT_TEMPLATE_FORMAT
           
 
Constructor Summary
DefaultViewResolver()
           
 
Method Summary
 String resolveViewPathFor(Route route)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PREFIX

private static final String DEFAULT_PREFIX
See Also:
Constant Field Values

DEFAULT_TEMPLATE_FORMAT

private static final String DEFAULT_TEMPLATE_FORMAT
See Also:
Constant Field Values
Constructor Detail

DefaultViewResolver

public DefaultViewResolver()
Method Detail

resolveViewPathFor

public String resolveViewPathFor(Route route)
Specified by:
resolveViewPathFor in interface ViewResolver

aerogear-controller 1.0.0.M1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.