com.google.sitebricks
Class ActionDescriptor

java.lang.Object
  extended by com.google.sitebricks.ActionDescriptor
All Implemented Interfaces:
PageBinder.ActionBinder

public class ActionDescriptor
extends Object
implements PageBinder.ActionBinder

Describes an action binding in the SPI for actions.

Author:
dhanji@gmail.com (Dhanji R. Prasanna)

Constructor Summary
ActionDescriptor(Action action, PageBinder.PerformBinder performBinder)
           
ActionDescriptor(com.google.inject.Key<? extends Action> action, PageBinder.PerformBinder performBinder)
           
 
Method Summary
 Action getAction()
           
 com.google.inject.Key<? extends Action> getActionKey()
           
 Set<Class<? extends Annotation>> getMethods()
           
 Map<String,String> getSelectHeaders()
           
 Map<String,String> getSelectParams()
           
 PageBinder.PerformBinder on(Class<? extends Annotation>... method)
           
 PageBinder.ActionBinder select(String param, String value)
           
 PageBinder.ActionBinder selectHeader(String param, Pattern regex)
           
 PageBinder.ActionBinder selectHeader(String header, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionDescriptor

public ActionDescriptor(Action action,
                        PageBinder.PerformBinder performBinder)

ActionDescriptor

public ActionDescriptor(com.google.inject.Key<? extends Action> action,
                        PageBinder.PerformBinder performBinder)
Method Detail

on

public PageBinder.PerformBinder on(Class<? extends Annotation>... method)
Specified by:
on in interface PageBinder.ActionBinder

select

public PageBinder.ActionBinder select(String param,
                                      String value)
Specified by:
select in interface PageBinder.ActionBinder

selectHeader

public PageBinder.ActionBinder selectHeader(String header,
                                            String value)
Specified by:
selectHeader in interface PageBinder.ActionBinder

selectHeader

public PageBinder.ActionBinder selectHeader(String param,
                                            Pattern regex)
Specified by:
selectHeader in interface PageBinder.ActionBinder

getAction

public Action getAction()

getActionKey

public com.google.inject.Key<? extends Action> getActionKey()

getSelectParams

public Map<String,String> getSelectParams()

getSelectHeaders

public Map<String,String> getSelectHeaders()

getMethods

public Set<Class<? extends Annotation>> getMethods()


Copyright © 2014. All rights reserved.