A ResourceContext represents additional information about the resource
that may effect how a method is executed, or reflect information that
is returned from a method execution. It contains two HTTPHeaders object
representing the method request and response Headers. A ResourceContext
also includs a status code which indicates the success or failure of the
method request.
Values for the request context are set before calling a method of
Resource or Collection, and provide additional parameters for
the method or context in which it is executed. After the method returns,
additional information about the method execution is available in the
context.
Many of these headers are only used internally by the ResourceHTTPStub
class to marshall arguments between the client and server using the HTTP
protocol. Some of this information can be more conveniently obtained through
the parameters and return values of class Resource.
author: Jim Amsden <jamsden@us.ibm.com> |