Skip to content

Package: TestEndpoint

TestEndpoint

nameinstructionbranchcomplexitylinemethod
TestEndpoint(String, String, String, boolean)
M: 15 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 6 C: 0
0%
M: 1 C: 0
0%

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.model;
12:
13: import com.sun.istack.NotNull;
14: import com.sun.istack.Nullable;
15:
16: /**
17: * Endpoint exposed from {@link TestService}.
18: *
19: * @author Kohsuke Kawaguchi
20: */
21: public class TestEndpoint {
22: /**
23: * Name of the endpoint.
24: *
25: * The name must be:
26: * <ol>
27: * <li>Unique within {@link TestService}
28: * <li>a valid Java identifier.
29: * </ol>
30: *
31: * <p>
32: * This value is used to infer the port QName, the proxy object variable
33: * name to be injected, etc.
34: *
35: * <p>
36: * The endpoint will be deployed to "/[name]" URL.
37: */
38: @NotNull
39: public final String name;
40:
41: /**
42: * Name of the class that implements this endpoint.
43: */
44: @NotNull
45: public final String className;
46:
47: /**
48: * Encoded port name "{uri}local". This value is obtained from the @WebService/Provider class,
49: * and may not be always available.
50: */
51: @Nullable
52: public final String portName;
53:
54: /**
55: * URL pattern like "/foo" where this service is bound.
56: */
57: @NotNull
58: public String urlPattern;
59:
60: /**
61: * If this class is WebServiceProvider and not WebService.
62: */
63: public final boolean isProvider;
64:
65: public TestEndpoint(String name, String className, String portName, boolean isProvider) {
66: this.name = name;
67: this.className = className;
68: this.portName = portName;
69: this.isProvider = isProvider;
70: }
71: }