@Override
public List<HandlerMetaData> getHandlers(EndpointMetaData epMetaData, HandlerType type)
{
List<HandlerMetaData> handlers = new ArrayList<HandlerMetaData>();
UnifiedHandlerChainMetaData handlerChain;
if (type == HandlerType.PRE)
handlerChain = getPreHandlerChain();
else if (type == HandlerType.POST)
handlerChain = getPostHandlerChain();
else
throw new IllegalArgumentException("Invalid handler type: " + type);
if (handlerChain != null)
{
for (UnifiedHandlerMetaData uhmd : handlerChain.getHandlers())
{
HandlerMetaDataJAXRPC hmd = HandlerMetaDataJAXRPC.newInstance(uhmd, type);
handlers.add(hmd);
}
}