/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Base code for {@link ProviderInvokerTube} and {@link SEIInvokerTube}.
*
* <p>
* This hides {@link InstanceResolver} and performs a set up
* necessary for {@link WebServiceContext} to correctly.
*
* @author Kohsuke Kawaguchi
*/
}
return p;
}
};
}
return endpoint;
}
/**
* Returns the application object that serves the request.
*
public final @NotNull T getServant(Packet request) {
// this allows WebServiceContext to find this packet
packets.set(request);
return invoker.resolve(request);
}
*/
/**
* Returns the {@link Invoker} object that serves the request.
*/
return wrapper;
}
/**
* processRequest() and processResponse() do not share any instance variables
* while processing the request. {@link InvokerTube} is stateless and terminal,
* so no need to create copies.
*/
return this;
}
public void preDestroy() {
}
/**
* Heart of {@link WebServiceContext}.
* Remembers which thread is serving which packet.
*/
/**
* This method can be called while the user service is servicing the request
* synchronously, to obtain the current request packet.
*
* <p>
* This is primarily designed for {@link StatefulInstanceResolver}. Use with care.
*/
return packet;
}
/**
* {@link Invoker} filter that sets and restores the current packet.
*/
public Object invoke(Packet p, Method m, Object... args) throws InvocationTargetException, IllegalAccessException {
try {
} finally {
}
}
public <T>T invokeProvider(Packet p, T arg) throws IllegalAccessException, InvocationTargetException {
try {
} finally {
}
}
public <T>void invokeAsyncProvider(Packet p, T arg, AsyncProviderCallback cbak, WebServiceContext ctxt) throws IllegalAccessException, InvocationTargetException {
try {
} finally {
}
}
return old;
}
};
}