com.google.sitebricks.routing
Class DefaultPageBook.PageTuple

java.lang.Object
  extended by com.google.sitebricks.routing.DefaultPageBook.PageTuple
All Implemented Interfaces:
PageBook.Page, Comparable<PageBook.Page>
Enclosing class:
DefaultPageBook

public static class DefaultPageBook.PageTuple
extends Object
implements PageBook.Page


Constructor Summary
DefaultPageBook.PageTuple(String uri, com.google.sitebricks.routing.PathMatcher matcher, Class<?> clazz, boolean headless, boolean extension, com.google.inject.Injector injector, com.google.common.collect.Multimap<String,Action> methods)
           
DefaultPageBook.PageTuple(String uri, com.google.sitebricks.routing.PathMatcher matcher, Class<?> clazz, com.google.inject.Injector injector, boolean headless, boolean extension)
           
 
Method Summary
 void apply(Renderable widget)
           
 int compareTo(PageBook.Page page)
           
 Object doMethod(String httpMethod, Object page, String pathInfo, Request request)
           
 boolean equals(Object o)
           
 Set<String> getMethod()
           
 String getUri()
           
 int hashCode()
           
 Object instantiate()
           
 boolean isDecorated()
           
 boolean isHeadless()
           
 Class<?> pageClass()
           
 Renderable widget()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPageBook.PageTuple

public DefaultPageBook.PageTuple(String uri,
                                 com.google.sitebricks.routing.PathMatcher matcher,
                                 Class<?> clazz,
                                 boolean headless,
                                 boolean extension,
                                 com.google.inject.Injector injector,
                                 com.google.common.collect.Multimap<String,Action> methods)

DefaultPageBook.PageTuple

public DefaultPageBook.PageTuple(String uri,
                                 com.google.sitebricks.routing.PathMatcher matcher,
                                 Class<?> clazz,
                                 com.google.inject.Injector injector,
                                 boolean headless,
                                 boolean extension)
Method Detail

widget

public Renderable widget()
Specified by:
widget in interface PageBook.Page

instantiate

public Object instantiate()
Specified by:
instantiate in interface PageBook.Page

isHeadless

public boolean isHeadless()
Specified by:
isHeadless in interface PageBook.Page

isDecorated

public boolean isDecorated()
Specified by:
isDecorated in interface PageBook.Page

getMethod

public Set<String> getMethod()
Specified by:
getMethod in interface PageBook.Page

compareTo

public int compareTo(PageBook.Page page)
Specified by:
compareTo in interface Comparable<PageBook.Page>

doMethod

public Object doMethod(String httpMethod,
                       Object page,
                       String pathInfo,
                       Request request)
Specified by:
doMethod in interface PageBook.Page

pageClass

public Class<?> pageClass()
Specified by:
pageClass in interface PageBook.Page

apply

public void apply(Renderable widget)
Specified by:
apply in interface PageBook.Page

getUri

public String getUri()
Specified by:
getUri in interface PageBook.Page

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014. All rights reserved.