|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IResourceServletInterceptor
Implementations of this interface can be used to intercept "getResource" WSRP operations on the consumer side. To register an implementation of this interface as an interceptor, it must be specified in the WEB-INF/web.xml file. As in init-param to the ResourceProxyServlet.
Method Summary | |
---|---|
Status.OnIOFailure |
onIOFailure(IResourceServletRequestContext requestContext,
IResourceServletResponseContext responseContext,
Throwable t)
Invoked when there is exception while sending the request or receiving the response. |
void |
onServletDestroy()
Allow the interceptor to cleanup resources created during onServletInit. |
void |
onServletInit(javax.servlet.ServletConfig config)
Called when the Resource Servlet is initialized. |
Status.PostInvoke |
postInvoke(IResourceServletRequestContext requestContext,
IResourceServletResponseContext responseContext)
Invoked after receiving the response. |
Status.PreInvoke |
preInvoke(IResourceServletRequestContext requestContext)
Invoked before requesting a resource |
Method Detail |
---|
void onServletInit(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
config
- The Servlet's config for getting init-params and the
servlet context.
javax.servlet.ServletException
- If the interceptor throws an ServletException it will be handled by the servlet container.void onServletDestroy()
Status.PreInvoke preInvoke(IResourceServletRequestContext requestContext) throws IOException
requestContext
- a request context object that represents input data for
the resource
IOException
- If the interceptor throws an IOException it will be handled by the servlet container.Status.PostInvoke postInvoke(IResourceServletRequestContext requestContext, IResourceServletResponseContext responseContext) throws IOException
requestContext.isForwardRequest() == true
),
The responseContext will be empty and the will have been committed. Therefore only limited support is provided for this use-case.
requestContext
- a request context object that represents input data for
the resourceresponseContext
- a response context object that represents output data from
the resource. The response context will be empty if the
preInvoke method had returned
Status.PreInvoke.SKIP_REQUEST_ABORT_CHAIN.
IOException
- If the interceptor throws an IOException it will be handled by the servlet container.IResourceServletRequestContext.isForwardRequest()
Status.OnIOFailure onIOFailure(IResourceServletRequestContext requestContext, IResourceServletResponseContext responseContext, Throwable t) throws IOException
requestContext
- a request context object that represents input data for
the resourceresponseContext
- an empty response context, so that an implementation can
populate it and return Status.OnIOFailure.HANDLED.t
- an exception that represents an IO failure.
IOException
- If the interceptor throws an IOException it will be handled by the servlet container.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |