butler.service
Class Request

java.lang.Object
  extended by butler.service.Request

public class Request
extends java.lang.Object

Holds data for a server request.

Author:
Fredrik Bertilsson

Constructor Summary
Request(java.lang.Object context, java.lang.String serviceName, java.lang.reflect.Method method, java.lang.Object[] params)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.Object key)
           
 java.lang.Object getContext()
           
static Request getCurrent()
           
 java.lang.reflect.Method getMethod()
           
 java.lang.Object[] getParams()
           
 java.lang.String getServiceName()
           
 void setAttribute(java.lang.Object key, java.lang.Object value)
           
static void setCurrent(Request request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request

public Request(java.lang.Object context,
               java.lang.String serviceName,
               java.lang.reflect.Method method,
               java.lang.Object[] params)
Method Detail

getContext

public java.lang.Object getContext()

getServiceName

public java.lang.String getServiceName()

getMethod

public java.lang.reflect.Method getMethod()

getParams

public java.lang.Object[] getParams()

getAttribute

public java.lang.Object getAttribute(java.lang.Object key)

setAttribute

public void setAttribute(java.lang.Object key,
                         java.lang.Object value)

getCurrent

public static Request getCurrent()

setCurrent

public static void setCurrent(Request request)