Search in sources :

Example 1 with Implementor

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;
}
Also used : Implementor(com.sun.xml.rpc.server.http.Implementor) InvocationManager(org.glassfish.api.invocation.InvocationManager) WebComponentInvocation(com.sun.enterprise.web.WebComponentInvocation)

Aggregations

WebComponentInvocation (com.sun.enterprise.web.WebComponentInvocation)1 Implementor (com.sun.xml.rpc.server.http.Implementor)1 InvocationManager (org.glassfish.api.invocation.InvocationManager)1