org.vraptor.scope
Class DefaultLogicRequest

java.lang.Object
  extended by org.vraptor.scope.DefaultLogicRequest
All Implemented Interfaces:
LogicRequest

public class DefaultLogicRequest
extends Object
implements LogicRequest

Basic vraptor logic request.

Author:
Guilherme Silveira

Constructor Summary
DefaultLogicRequest(RequestInfo info, WebRequest request)
          Deprecated. 
DefaultLogicRequest(RequestInfo info, WebRequest request, LogicDefinition definition)
           
 
Method Summary
 void confirmResult(String string)
          Sets the String that will represent the logic result, like success, invalid, error and so on
 Object findAttribute(String key)
          Looks for an attribute in any scope.
 ApplicationContext getApplicationContext()
          Returns a wrapper for the application context
 FlashContext getFlashContext()
           
 LogicDefinition getLogicDefinition()
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 RequestContext getRequestContext()
          Returns a wrapper for the request session
 RequestInfo getRequestInfo()
           
 javax.servlet.http.HttpServletResponse getResponse()
           
 String getResult()
          Returns the current value set as the logic result
 javax.servlet.ServletContext getServletContext()
           
 SessionContext getSessionContext()
          Returns a wrapper for the user session
 void setLogicDefinition(LogicDefinition logicDefinition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLogicRequest

@Deprecated
public DefaultLogicRequest(RequestInfo info,
                                      WebRequest request)
Deprecated. 


DefaultLogicRequest

public DefaultLogicRequest(RequestInfo info,
                           WebRequest request,
                           LogicDefinition definition)
Method Detail

getApplicationContext

public ApplicationContext getApplicationContext()
Description copied from interface: LogicRequest
Returns a wrapper for the application context

Specified by:
getApplicationContext in interface LogicRequest
Returns:
the context

getSessionContext

public SessionContext getSessionContext()
Description copied from interface: LogicRequest
Returns a wrapper for the user session

Specified by:
getSessionContext in interface LogicRequest
Returns:
the context

getRequestContext

public RequestContext getRequestContext()
Description copied from interface: LogicRequest
Returns a wrapper for the request session

Specified by:
getRequestContext in interface LogicRequest
Returns:
the context

getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Specified by:
getRequest in interface LogicRequest

getResponse

public javax.servlet.http.HttpServletResponse getResponse()
Specified by:
getResponse in interface LogicRequest

findAttribute

public Object findAttribute(String key)
Description copied from interface: LogicRequest
Looks for an attribute in any scope.

Specified by:
findAttribute in interface LogicRequest
Parameters:
key - the key to look for
Returns:
the object or null if not found

confirmResult

public void confirmResult(String string)
Description copied from interface: LogicRequest
Sets the String that will represent the logic result, like success, invalid, error and so on

Specified by:
confirmResult in interface LogicRequest

getResult

public String getResult()
Description copied from interface: LogicRequest
Returns the current value set as the logic result

Specified by:
getResult in interface LogicRequest
Returns:
the result for now, null if it was not set yet

getRequestInfo

public RequestInfo getRequestInfo()
Specified by:
getRequestInfo in interface LogicRequest

getServletContext

public javax.servlet.ServletContext getServletContext()
Specified by:
getServletContext in interface LogicRequest

getLogicDefinition

public LogicDefinition getLogicDefinition()
Specified by:
getLogicDefinition in interface LogicRequest

setLogicDefinition

public void setLogicDefinition(LogicDefinition logicDefinition)
Specified by:
setLogicDefinition in interface LogicRequest

getFlashContext

public FlashContext getFlashContext()
Specified by:
getFlashContext in interface LogicRequest


Copyright © 2004-2008 VRaptor. All Rights Reserved.