Search in sources :

Example 1 with StubHandler

use of com.sun.xml.ws.client.sei.StubHandler in project metro-jax-ws by eclipse-ee4j.

the class DatabindingImpl method serializeRequest.

@Override
public Packet serializeRequest(JavaCallInfo call) {
    StubHandler stubHandler = stubHandlers.get(call.getMethod());
    Packet p = stubHandler.createRequestPacket(call);
    p.setState(Packet.State.ClientRequest);
    return p;
}
Also used : Packet(com.sun.xml.ws.api.message.Packet) StubHandler(com.sun.xml.ws.client.sei.StubHandler)

Example 2 with StubHandler

use of com.sun.xml.ws.client.sei.StubHandler in project metro-jax-ws by eclipse-ee4j.

the class DatabindingImpl method initStubHandlers.

// Refactored from SEIStub
private void initStubHandlers() {
    stubHandlers = new HashMap<>();
    Map<ActionBasedOperationSignature, JavaMethodImpl> syncs = new HashMap<>();
    // first fill in sychronized versions
    for (JavaMethodImpl m : seiModel.getJavaMethods()) {
        if (!m.getMEP().isAsync) {
            StubHandler handler = new StubHandler(m, packetFactory);
            syncs.put(m.getOperationSignature(), m);
            stubHandlers.put(m.getMethod(), handler);
        }
    }
    for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
        JavaMethodImpl sync = syncs.get(jm.getOperationSignature());
        if (jm.getMEP() == MEP.ASYNC_CALLBACK || jm.getMEP() == MEP.ASYNC_POLL) {
            Method m = jm.getMethod();
            StubAsyncHandler handler = new StubAsyncHandler(jm, sync, packetFactory);
            stubHandlers.put(m, handler);
        }
    }
}
Also used : JavaMethodImpl(com.sun.xml.ws.model.JavaMethodImpl) HashMap(java.util.HashMap) StubAsyncHandler(com.sun.xml.ws.client.sei.StubAsyncHandler) StubHandler(com.sun.xml.ws.client.sei.StubHandler) Method(java.lang.reflect.Method) ActionBasedOperationSignature(com.sun.xml.ws.wsdl.ActionBasedOperationSignature)

Aggregations

StubHandler (com.sun.xml.ws.client.sei.StubHandler)2 Packet (com.sun.xml.ws.api.message.Packet)1 StubAsyncHandler (com.sun.xml.ws.client.sei.StubAsyncHandler)1 JavaMethodImpl (com.sun.xml.ws.model.JavaMethodImpl)1 ActionBasedOperationSignature (com.sun.xml.ws.wsdl.ActionBasedOperationSignature)1 Method (java.lang.reflect.Method)1 HashMap (java.util.HashMap)1