All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.xml.ws.client.sei.MethodHandler Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0, which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package com.sun.xml.ws.client.sei;

import java.lang.reflect.Method;

import jakarta.xml.ws.WebServiceException;

/**
 * Handles an invocation of a method.
 *
 * 

* Each instance of {@link MethodHandler} has an implicit knowledge of * a particular method that it handles. * * @author Kohsuke Kawaguchi */ public abstract class MethodHandler { protected final SEIStub owner; protected Method method; protected MethodHandler(SEIStub owner, Method m) { this.owner = owner; method = m; } /** * Performs the method invocation. * * @param proxy * The proxy object exposed to the user. Must not be null. * @param args * The method invocation arguments. To handle asynchroonus method invocations * without array reallocation, this aray is allowed to be longer than the * actual number of arguments to the method. Additional array space should be * simply ignored. * @return * a return value from the method invocation. may be null. * * @throws WebServiceException * If used on the client side, a {@link WebServiceException} signals an error * during the service invocation. * @throws Throwable * some faults are reported in terms of checked exceptions. */ abstract Object invoke(Object proxy, Object[] args) throws WebServiceException, Throwable; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy