Skip to content

Package: Application

Application

Coverage

1: /*
2: * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Distribution License v. 1.0, which is available at
6: * http://www.eclipse.org/org/documents/edl-v10.php.
7: *
8: * SPDX-License-Identifier: BSD-3-Clause
9: */
10:
11: package com.sun.xml.ws.test.container;
12:
13: import com.sun.istack.NotNull;
14: import com.sun.xml.ws.test.model.TestEndpoint;
15:
16: import java.net.URI;
17: import java.net.URL;
18: import java.util.List;
19:
20: /**
21: * Represents an application deployed inside a {@link ApplicationContainer}.
22: *
23: * <p>
24: * This object needs to be multi-thread safe.
25: *
26: * @author Kohsuke Kawaguchi
27: */
28: public interface Application {
29: /**
30: * Returns the actual endpoint address to which the given {@link TestEndpoint}
31: * is deployed.
32: */
33: @NotNull URI getEndpointAddress(@NotNull TestEndpoint endpoint) throws Exception;
34:
35: /**
36: * Gets the WSDL of this service.
37: *
38: * <p>
39: * This WSDL will be compiled to generate client artifacts during a test.
40: * In the general case, you may get more than one WSDL from one web application.
41: */
42: @NotNull
43: List<URL> getWSDL() throws Exception;
44:
45: /**
46: * Removes this application from the container.
47: */
48: void undeploy() throws Exception;
49: }