パッケージ org.wcardinal.controller

クラス AbstractController

java.lang.Object
org.wcardinal.controller.AbstractController
すべての実装されたインタフェース:
ControllerContext, Unlockable
直系の既知のサブクラス:
AbstractComponent, AbstractVisibilityController, ControllerFacade

public class AbstractController extends Object implements ControllerContext
Provides additional functions of controllers.
 @Controller
 class MyController extends AbstractController {
   void foo(){
     System.out.println( getRemoteAddress() );
   }
 }
 
  • フィールドの概要

    フィールド
    修飾子とタイプ
    フィールド
    説明
     
  • コンストラクタの概要

    コンストラクタ
    コンストラクタ
    説明
     
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    boolean
    Cancels the current request issued by timeout or interval methods, or the current task.
    boolean
    cancel(long id)
    Cancels the request of the specified ID issued by timeout or interval methods.
    boolean
    cancel(String reason)
    Cancels the current task.
    void
    Cancels all requests issued by timeout or interval methods.
    execute(Runnable runnable)
    Requests to execute the specified runnable.
    void
    execute(String name, Object... parameters)
    Requests to execute methods annotated with the OnTime of the specified name.
    <T> Future<T>
    execute(Callable<T> callable)
    Requests to execute the specified callable.
    <T> T
    Returns the active page or null.
    Returns the attributes.
    com.fasterxml.jackson.databind.node.ArrayNode
    Returns the factory parameters.
    Returns the preferred locale.
    Returns the locale objects in decreasing order starting with the preferred locale.
    Returns the name of this controller.
    Returns the first parameter of the specified key.
    Returns the map of parameters.
    Returns the parameters of the specified key.
    <T> T
    Returns the parent.
    Returns the parent as a factory.
    <T> Collection<T>
    Returns the parents.
    Returns the user principle.
    Returns the user's remote address.
    Returns the scheduler.
    Returns the session ID.
    Returns the sub session ID.
    void
    Hides this controller.
    long
    interval(Runnable runnable, long interval)
    Requests to call the specified runnable at the specified interval and returns an ID of this request.
    long
    interval(Runnable runnable, long startAt, long interval)
    Requests to call the specified runnable at the specified interval after the 'startAfter' milliseconds and returns an ID of this request.
    long
    interval(String name, long interval)
    Requests to call methods annotated with the OnTime of the specified name at the specified interval and returns an ID of this request.
    long
    interval(String name, long startAfter, long interval, Object... parameters)
    Requests to call methods annotated with the OnTime of the specified name at the specified interval after the 'startAfter' milliseconds and returns an ID of this request.
    boolean
    Returns true if the current task is canceled or if the current request issued by timeout or interval methods is canceled/non-existing.
    boolean
    Returns true if the thread calling this method is the forefront executor of methods annotated with Tracked.
    boolean
    Returns true if this controller is hidden.
    boolean
    Returns true if this controller is historical.
    boolean
    Returns true if this controller is locked.
    boolean
    Returns true if this controller is locked by the current thread.
    boolean
    Returns true if this controller is non-null.
    boolean
    Returns true if this controller is read-only.
    boolean
    Returns true if this controller is shown.
    Locks this controller.
    void
    notify(String name, Object... parameters)
    Requests to call methods annotated with the OnNotice of the specified name.
    void
    notifyAsync(String name, Object... parameters)
    Requests to call methods annotated with the OnNotice of the specified name asynchronously.
    void
    Shows this controller.
    long
    timeout(Runnable runnable, long delay)
    Requests to call the specified runnable after the specified delay and returns an ID of this request.
    long
    timeout(String name, long delay, Object... parameters)
    Requests to call methods annotated with the OnTime of the specified name after the specified delay and returns an ID of this request.
    timeout(Callable<T> callable, long delay)
    Requests to call the specified callable after the specified delay.
    void
    trigger(String name, Object... arguments)
    Triggers the event of the given name at browsers.
    triggerAndWait(String name, long timeout, Object... arguments)
    Triggers the event of the specified name at browsers and waits for responses from browsers.
    void
    triggerDirect(String name, Object... arguments)
    Triggers the event of the given name at browsers directly.
    boolean
    Tries to lock this controller.
    boolean
    tryLock(long timeout, TimeUnit unit)
    Tries to lock this controller.
    void
    Unlocks this controller.

    クラスから継承されたメソッド java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait