src/share/jaxws_classes/com/sun/xml/internal/ws/model/JavaMethodImpl.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 408
b0610cd08440
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
104 if(inputAction.equals("")) 104 if(inputAction.equals(""))
105 // set input action to non-empty soapAction 105 // set input action to non-empty soapAction
106 inputAction = soapAction; 106 inputAction = soapAction;
107 else if(!inputAction.equals(soapAction)){ 107 else if(!inputAction.equals(soapAction)){
108 //both are explicitly set via annotations, make sure @Action == @WebMethod.action 108 //both are explicitly set via annotations, make sure @Action == @WebMethod.action
109 throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName()); 109 //http://java.net/jira/browse/JAX_WS-1108
110 //throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
110 } 111 }
111 } 112 }
112 } 113 }
113 114
114 public ActionBasedOperationSignature getOperationSignature() { 115 public ActionBasedOperationSignature getOperationSignature() {
120 public SEIModel getOwner() { 121 public SEIModel getOwner() {
121 return owner; 122 return owner;
122 } 123 }
123 124
124 /** 125 /**
125 * @see {@link JavaMethod} 126 * @see JavaMethod
126 * 127 *
127 * @return Returns the method. 128 * @return Returns the method.
128 */ 129 */
129 public Method getMethod() { 130 public Method getMethod() {
130 return method; 131 return method;
131 } 132 }
132 133
133 /** 134 /**
134 * @see {@link JavaMethod} 135 * @see JavaMethod
135 * 136 *
136 * @return Returns the SEI method where annotations are present 137 * @return Returns the SEI method where annotations are present
137 */ 138 */
138 public Method getSEIMethod() { 139 public Method getSEIMethod() {
139 return seiMethod; 140 return seiMethod;
169 void setBinding(SOAPBinding binding) { 170 void setBinding(SOAPBinding binding) {
170 this.binding = binding; 171 this.binding = binding;
171 } 172 }
172 173
173 /** 174 /**
174 * Returns the {@link WSDLBoundOperation} Operation associated with {@link this} 175 * Returns the {@link WSDLBoundOperation} Operation associated with {@link JavaMethodImpl}
175 * operation. 176 * operation.
176 * @deprecated 177 * @deprecated
177 * @return the WSDLBoundOperation for this JavaMethod 178 * @return the WSDLBoundOperation for this JavaMethod
178 */ 179 */
179 public WSDLBoundOperation getOperation() { 180 public WSDLBoundOperation getOperation() {

mercurial