use of com.sun.xml.rpc.server.http.Implementor in project Payara by payara.
the class ServletPreHandler method handleRequest.
@Override
public boolean handleRequest(MessageContext context) {
WebComponentInvocation inv = null;
try {
WebServiceContractImpl wscImpl = WebServiceContractImpl.getInstance();
InvocationManager invManager = wscImpl.getInvocationManager();
inv = WebComponentInvocation.class.cast(invManager.getCurrentInvocation());
com.sun.xml.rpc.spi.runtime.Tie tie = (com.sun.xml.rpc.spi.runtime.Tie) inv.getWebServiceTie();
if (tie == null) {
Implementor implementor = (Implementor) context.getProperty(MessageContextProperties.IMPLEMENTOR);
tie = implementor.getTie();
inv.setWebServiceTie(tie);
}
inv.setWebServiceMethod(wsUtil.getInvMethod(tie, context));
} catch (Exception e) {
logger.log(Level.WARNING, LogUtils.PRE_WEBHANDLER_ERROR, e.toString());
wsUtil.throwSOAPFaultException(e.getMessage(), context);
}
return true;
}
Aggregations