RestRequest

public class RestRequest

The RestRequest class represents a Restful service request. It is independent of which access protocol it is using and contains the bodies of the request message.

Author:Patrick Yee

Constructors

RestRequest

public RestRequest()

Creates a new instance of RestRequest.

RestRequest

public RestRequest(Object source)

Creates a new instance of RestRequest.

Parameters:
  • source – the source which initiated this request.

Methods

getSource

public Object getSource()

Gets the source which initiated this request.

Returns:the source which initiated this request.

setSource

public void setSource(Object source)

Sets the source which initiated this request.

Parameters:
  • source – the source which initiated this request.