jason.core
Interface Action


public interface Action

Action inside a Service. This kind if object handle a particular client request. Ex : GET, POST, HEAD are actions tied to the HTTP/1.0 protocol. A action should be a fast processing, there's no possibility to stop it. Service must define a little communication with the param object.

Since:
1.0

Method Summary
 java.lang.String getName()
           
 void init(ActionConfig config)
          Initialize the action once
 void setName(java.lang.String name)
           
 void start(java.lang.Object param)
          Run the action with a particular param
 

Method Detail

getName

public java.lang.String getName()
Returns:
Name of the action (ex : GET, POST... )

setName

public void setName(java.lang.String name)

init

public void init(ActionConfig config)
Initialize the action once

Parameters:
config - Configuration about the action

start

public void start(java.lang.Object param)
Run the action with a particular param