|
VisiBroker for Java |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ServerRequestInterceptor
The ServerRequestInterceptor interface is a per-POA interceptor which may be installed by a POALifeCycleInterceptor at POA creation time. This interface may be used to perform access control, to examine and insert service contexts, and to change the reply status of a request.
| Method Summary | |
|---|---|
void |
exception_occurred(Object target,
Environment env,
Closure closure)
This method is invoked if an exception is raised at any point of request processing. |
void |
postinvoke_postmarshal(Object target,
OutputStream payload,
Closure closure)
This method is invoked after marshalling the reply but before sending the reply to the client. |
void |
postinvoke_premarshal(Object target,
com.inprise.vbroker.IOP.ServiceContextListHolder service_contexts,
Environment env,
Closure closure)
The postinvoke interceptor is called after every request has completed. |
void |
preinvoke(Object target,
java.lang.String operation,
ServiceContext[] service_contexts,
InputStream payload,
Closure closure)
This method is invoked by the ORB on every request, as soon as the request arrives on the server side. |
| Method Detail |
|---|
void exception_occurred(Object target,
Environment env,
Closure closure)
target - The object on which the request is invoked.env - Contains information on the exception that was raised.closure - May contain data saved by one interceptor method that can be retrieved later by another interceptor method.
void postinvoke_postmarshal(Object target,
OutputStream payload,
Closure closure)
target - The object on which the request is invoked.payload - Marshalled buffer.closure - May contain data saved by one interceptor method that can be retrieved later by another interceptor method.
void postinvoke_premarshal(Object target,
com.inprise.vbroker.IOP.ServiceContextListHolder service_contexts,
Environment env,
Closure closure)
target - The object on which the request was invoked.service_contexts - Identifies the services assigned by the ORB. These services are registered with the OMG.env - Contains information on the exception that was raised.closure - May contain data saved by one interceptor method that can be retrieved later by another interceptor method.
void preinvoke(Object target,
java.lang.String operation,
ServiceContext[] service_contexts,
InputStream payload,
Closure closure)
throws ForwardRequestException
target - The object on which the request is invoked.operation - Identifies the name of the operation being invoked.service_contexts - Identifies the services assigned by the ORB. These services are registered with the OMG.payload - Marshalled buffer.closure - May contain data saved by one interceptor method that can be retrieved later by another interceptor method.
ForwardRequestException - Forward request to another object.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||