Merge pull request #13900 from atorralba/atorralba/java/jaxws-getaremotemethod-improv

Java: Improve `JaxWsEndpoint::getARemoteMethod`
This commit is contained in:
Tony Torralba
2023-08-24 13:37:15 +02:00
committed by GitHub
4 changed files with 182 additions and 11 deletions

View File

@@ -1,5 +1,8 @@
import java.io.File;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceProvider;
@@ -8,37 +11,88 @@ import javax.xml.ws.WebServiceProvider;
class WebServiceClass { // $ JaxWsEndpoint
@WebMethod
void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
}
@WebEndpoint
void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
public void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
}
public String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
return null;
}
public String unacceptableParamType(File param) { // not an endpoint
return null;
}
public File unacceptableReturnType() { // not an endpoint
return null;
}
@XmlJavaTypeAdapter
public File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
return null;
}
}
@WebServiceProvider
class WebServiceProviderClass { // $ JaxWsEndpoint
@WebMethod
void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
}
@WebEndpoint
void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
public void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
}
public String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
return null;
}
public String unacceptableParamType(File param) { // not an endpoint
return null;
}
public File unacceptableReturnType() { // not an endpoint
return null;
}
@XmlJavaTypeAdapter
public File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
return null;
}
}
@WebServiceClient
class WebServiceClientClass { // $ JaxWsEndpoint
@WebMethod
void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
}
@WebEndpoint
void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
public void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
}
public String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
return null;
}
public String unacceptableParamType(File param) { // not an endpoint
return null;
}
public File unacceptableReturnType() { // not an endpoint
return null;
}
@XmlJavaTypeAdapter
public File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
return null;
}
}