@Test public void testInvokeWithoutRequestUrl() throws AxisFault { MessageContext messageContext = new MessageContext(axisEngine); messageContext.setRequestMessage(requestMessage); thrown.expect(AxisFault.class); thrown.expectCause(Matchers.<Exception>instanceOf(IllegalArgumentException.class)); thrown.expectMessage("URL"); httpHandler.invoke(messageContext); }
@Override public void invoke(MessageContext msgContext) throws AxisFault { if (msgContext == null) { throw AxisFault.makeFault(new NullPointerException("Null message context")); } try { HttpResponse response = null; HttpRequest postRequest = createHttpRequest(msgContext); response = postRequest.execute(); msgContext.setResponseMessage(createResponseMessage(response)); } catch (RuntimeException | SOAPException | IOException e) { throw AxisFault.makeFault(e); } }
HttpHandler extends BasicHandler implements HttpRequestInitializer { @Override public void invoke(MessageContext msgContext) throws AxisFault { if (msgContext == null) { throw AxisFault.makeFault(new NullPointerException("Null message context")); } try { HttpResponse response = null; HttpRequest postRequest = createHttpRequest(msgContext); response = postRequest.execute(); msgContext.setResponseMessage(createResponseMessage(response)); } catch (RuntimeException | SOAPException | IOException e) { throw AxisFault.makeFault(e); } } }
HttpHandler extends BasicHandler implements HttpRequestInitializer { @Override public void invoke(MessageContext msgContext) throws AxisFault { if (msgContext == null) { throw AxisFault.makeFault(new NullPointerException("Null message context")); } try { HttpResponse response = null; HttpRequest postRequest = createHttpRequest(msgContext); response = postRequest.execute(); msgContext.setResponseMessage(createResponseMessage(response)); } catch (RuntimeException | SOAPException | IOException e) { throw AxisFault.makeFault(e); } } HttpHandler(); @VisibleForTesting  HttpHandler(HttpTransport transport, InputStreamEventListener inputStreamEventListener); }
HttpHandler extends BasicHandler implements HttpRequestInitializer { @Override public void invoke(MessageContext msgContext) throws AxisFault { if (msgContext == null) { throw AxisFault.makeFault(new NullPointerException("Null message context")); } try { HttpResponse response = null; HttpRequest postRequest = createHttpRequest(msgContext); response = postRequest.execute(); msgContext.setResponseMessage(createResponseMessage(response)); } catch (RuntimeException | SOAPException | IOException e) { throw AxisFault.makeFault(e); } } HttpHandler(); @VisibleForTesting  HttpHandler(HttpTransport transport, InputStreamEventListener inputStreamEventListener); @Override void invoke(MessageContext msgContext); @Override void initialize(HttpRequest httpRequest); }
HttpHandler extends BasicHandler implements HttpRequestInitializer { @Override public void invoke(MessageContext msgContext) throws AxisFault { if (msgContext == null) { throw AxisFault.makeFault(new NullPointerException("Null message context")); } try { HttpResponse response = null; HttpRequest postRequest = createHttpRequest(msgContext); response = postRequest.execute(); msgContext.setResponseMessage(createResponseMessage(response)); } catch (RuntimeException | SOAPException | IOException e) { throw AxisFault.makeFault(e); } } HttpHandler(); @VisibleForTesting  HttpHandler(HttpTransport transport, InputStreamEventListener inputStreamEventListener); @Override void invoke(MessageContext msgContext); @Override void initialize(HttpRequest httpRequest);  }