src/share/jaxws_classes/com/sun/xml/internal/ws/server/sei/SEIInvokerTube.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
     1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/server/sei/SEIInvokerTube.java	Thu Apr 04 19:05:24 2013 -0700
     1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/server/sei/SEIInvokerTube.java	Tue Apr 09 14:51:13 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -25,10 +25,9 @@
    1.11  
    1.12  package com.sun.xml.internal.ws.server.sei;
    1.13  
    1.14 +import com.oracle.webservices.internal.api.databinding.JavaCallInfo;
    1.15  import com.sun.istack.internal.NotNull;
    1.16 -import com.sun.xml.internal.ws.api.SOAPVersion;
    1.17  import com.sun.xml.internal.ws.api.WSBinding;
    1.18 -import com.sun.xml.internal.ws.api.databinding.EndpointCallBridge;
    1.19  import com.sun.xml.internal.ws.api.message.Message;
    1.20  import com.sun.xml.internal.ws.api.message.Packet;
    1.21  import com.sun.xml.internal.ws.api.pipe.NextAction;
    1.22 @@ -36,13 +35,8 @@
    1.23  import com.sun.xml.internal.ws.client.sei.MethodHandler;
    1.24  import com.sun.xml.internal.ws.model.AbstractSEIModelImpl;
    1.25  import com.sun.xml.internal.ws.server.InvokerTube;
    1.26 -import com.sun.xml.internal.ws.resources.ServerMessages;
    1.27 -import com.sun.xml.internal.ws.fault.SOAPFaultBuilder;
    1.28  import com.sun.xml.internal.ws.wsdl.DispatchException;
    1.29 -import com.sun.xml.internal.org.jvnet.ws.databinding.JavaCallInfo;
    1.30 -import java.util.List;
    1.31  import java.lang.reflect.InvocationTargetException;
    1.32 -import java.text.MessageFormat;
    1.33  
    1.34  /**
    1.35   * This pipe is used to invoke SEI based endpoints.
    1.36 @@ -87,18 +81,18 @@
    1.37                              DispatchException e = (DispatchException)call.getException();
    1.38                              return doReturnWith(req.createServerResponse(e.fault, model.getPort(), null, binding));
    1.39                          }
    1.40 -                Packet res = (Packet) model.getDatabinding().serializeResponse(call);
    1.41 +                        Packet res = (Packet) model.getDatabinding().serializeResponse(call);
    1.42                          res = req.relateServerResponse(res, req.endpoint.getPort(), model, req.endpoint.getBinding());
    1.43              assert res != null;
    1.44              return doReturnWith(res);
    1.45      }
    1.46  
    1.47      public @NotNull NextAction processResponse(@NotNull Packet response) {
    1.48 -        throw new IllegalStateException("InovkerPipe's processResponse shouldn't be called.");
    1.49 +        return doReturnWith(response);
    1.50      }
    1.51  
    1.52      public @NotNull NextAction processException(@NotNull Throwable t) {
    1.53 -        throw new IllegalStateException("InovkerPipe's processException shouldn't be called.");
    1.54 +        return doThrow(t);
    1.55      }
    1.56  
    1.57  }

mercurial