public final class RequestInfoHolder extends Object implements Streamable
Each interception point is given an object through which the
Interceptor can access request information. Client-side and server-side
interception points are concerned with different information, so there
are two information objects: ClientRequestInfo
is passed
to the client-side interception points and ServerRequestInfo
is passed to the server-side interception points. But there is
information that is common to both, so they both inherit from a common
interface: RequestInfo
.
ClientRequestInfo
,
ServerRequestInfo
Modifier and Type | Field and Description |
---|---|
RequestInfo |
value |
Constructor and Description |
---|
RequestInfoHolder() |
RequestInfoHolder(RequestInfo initialValue) |
Modifier and Type | Method and Description |
---|---|
void |
_read(InputStream i)
Reads data from
istream and initalizes the
value field of the Holder with the unmarshalled data. |
TypeCode |
_type()
Retrieves the
TypeCode object corresponding to the value
in the value field of the Holder. |
void |
_write(OutputStream o)
Marshals to
ostream the value in the
value field of the Holder. |
public RequestInfo value
public RequestInfoHolder()
public RequestInfoHolder(RequestInfo initialValue)
public void _read(InputStream i)
Streamable
istream
and initalizes the
value
field of the Holder with the unmarshalled data._read
in interface Streamable
i
- the InputStream that represents the CDR data from the wire.public void _write(OutputStream o)
Streamable
ostream
the value in the
value
field of the Holder._write
in interface Streamable
o
- the CDR OutputStreampublic TypeCode _type()
Streamable
TypeCode
object corresponding to the value
in the value
field of the Holder._type
in interface Streamable
TypeCode
object for the value held in the holderCopyright © 2021 JBoss by Red Hat. All rights reserved.