net.craftforge.essential.controller
Class State

java.lang.Object
  extended by net.craftforge.essential.controller.State

public class State
extends Object

Represents the current state of a performing call.

Since:
06.02.2011
Author:
Christian Bick

Constructor Summary
State()
           
 
Method Summary
 Date getInvocationEnd()
          Gets the invocation end date
 Date getInvocationStart()
          Gets the invocation start date
 Class<?> getResourceClass()
          Gets the resource class
 Method getResourceMethod()
          Gets the resource method.
 Object getResult()
          Gets the result.
 HttpStatusCode getStatus()
          Gets the HTTP status code.
 void setInvocationEnd(Date invocationEnd)
          Sets the invocation end date
 void setInvocationStart(Date invocationStart)
          Sets the invocation start date
 void setResourceClass(Class<?> resourceClass)
          Sets the resource class
 void setResourceMethod(Method resourceMethod)
          Sets the resource method.
 void setResult(Object result)
          Sets the result.
 void setStatus(HttpStatusCode status)
          Sets the HTTP status code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

State

public State()
Method Detail

getResourceMethod

public Method getResourceMethod()
Gets the resource method.

Returns:
The resource method

setResourceMethod

public void setResourceMethod(Method resourceMethod)
Sets the resource method.

Parameters:
resourceMethod - The resource method

getResourceClass

public Class<?> getResourceClass()
Gets the resource class

Returns:
The resource class

setResourceClass

public void setResourceClass(Class<?> resourceClass)
Sets the resource class

Parameters:
resourceClass - The resource class

getResult

public Object getResult()
Gets the result.

Returns:
The result

setResult

public void setResult(Object result)
Sets the result.

Parameters:
result - The result

getStatus

public HttpStatusCode getStatus()
Gets the HTTP status code.

Returns:
The HTTP status code

setStatus

public void setStatus(HttpStatusCode status)
Sets the HTTP status code.

Parameters:
status - The HTTP status code

getInvocationStart

public Date getInvocationStart()
Gets the invocation start date

Returns:
The invocation start date

setInvocationStart

public void setInvocationStart(Date invocationStart)
Sets the invocation start date

Parameters:
invocationStart - The invocation start date

getInvocationEnd

public Date getInvocationEnd()
Gets the invocation end date

Returns:
The invocation end date

setInvocationEnd

public void setInvocationEnd(Date invocationEnd)
Sets the invocation end date

Parameters:
invocationEnd - The invocation end date


Copyright © 2011. All Rights Reserved.