CopaServer
Change of Plan Application
 All Classes Functions Pages
Public Member Functions | List of all members
unicopa.copa.base.com.request.TestRequest Class Reference

A request to test the systems handling of the clients requests and the clients handling of the systems responses. More...

Inheritance diagram for unicopa.copa.base.com.request.TestRequest:
Inheritance graph
Collaboration diagram for unicopa.copa.base.com.request.TestRequest:
Collaboration graph

Public Member Functions

 TestRequest (int magicNumber, String message)
 Create a test request. More...
 
int getMagicNumber ()
 
String getMessage ()
 

Additional Inherited Members

- Static Public Member Functions inherited from unicopa.copa.base.com.request.AbstractRequest
static UserRole getRequiredPermissionLevel ()
 
static AbstractRequest deserialize (String json) throws APIException
 
- Static Protected Attributes inherited from unicopa.copa.base.com.request.AbstractRequest
static UserRole requiredPermissionLevel = UserRole.ADMINISTRATOR
 

Detailed Description

A request to test the systems handling of the clients requests and the clients handling of the systems responses.

Author
Felix Wiemuth

Constructor & Destructor Documentation

unicopa.copa.base.com.request.TestRequest.TestRequest ( int  magicNumber,
String  message 
)

Create a test request.

Parameters
magicNumberdepending on special numbers sent, the system will send exceptions or normal answers (0=InternalErrorException, 0-or-less=PermissionException, 42=RequestNotPracticableException, 400=InternalErrorException because of null)
messagethe message to be sent to the system (the response will include it somehow); if message="Who am I?" the system will response with the user ID of the authenticated user

The documentation for this class was generated from the following file: