public final class ClientRequestInterceptorHolder extends Object implements Streamable
A request Interceptor is designed to intercept the flow of a request/reply sequence through the ORB at specific points so that services can query the request information and manipulate the service contexts which are propagated between clients and servers. The primary use of request Interceptors is to enable ORB services to transfer context information between clients and servers. There are two types of request Interceptors: client-side and server-side.
To write a client-side Interceptor, implement the
ClientRequestInterceptor
interface.
ClientRequestInfo
Modifier and Type | Field and Description |
---|---|
ClientRequestInterceptor |
value |
Constructor and Description |
---|
ClientRequestInterceptorHolder() |
ClientRequestInterceptorHolder(ClientRequestInterceptor 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 ClientRequestInterceptor value
public ClientRequestInterceptorHolder()
public ClientRequestInterceptorHolder(ClientRequestInterceptor 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.