|
Oracle Communications Services Gatekeeper Java API Reference 6.0 E55513-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.wlcp.wlng.api.plugin.RequestFactory
The Request factory is used to perform traffic path-specific processing before and after a request is processed in the plug-in. There should be one implementation for each application-facing interface.
Constructor Summary | |
RequestFactory() |
Method Summary | |
Throwable |
convertEx(Method method, Throwable t) Converts a generic exception to a service-specific exception. |
Object[] |
createPartialRequest(List ris) Create a partial request for a subset of RequestInfos. |
RequestInfo |
createRequestInfo(Class type, Method method, Object[] args) Create the request info. |
RequestInfo[] |
createRequestInfos(Class type, Method method, Object[] args) Creates multiple RequestInfos for one request. |
static Object |
getArgument(int index, Object[] args) Helper method for finding the argument on specific index. |
Object |
mergeResults(RequestInfo[] ris, List results) Merges partial results into one result. |
void |
validateRequest(Method method, Object[] args) Validate the request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RequestFactory()
Method Detail |
public Throwable convertEx(Method method, Throwable t)
method
- The method that was called.t
- The exception to convert.public Object[] createPartialRequest(List ris)
ris
- The request information.public RequestInfo createRequestInfo(Class type, Method method, Object[] args)
public RequestInfo[] createRequestInfos(Class type, Method method, Object[] args)
public static final Object getArgument(int index, Object[] args)
args
- Arguments.index
- Index.public Object mergeResults(RequestInfo[] ris, List results)
ris
- The request information.results
- The result from all requests.public void validateRequest(Method method, Object[] args) throws Throwable
Exception
- on validation error.Throwable
|
Oracle Communications Services Gatekeeper Java API Reference 6.0 E55513-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |