mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
* Consider that the @WebService annotation (et al) can be in a supertype or interface * getARemoteMethod should only return public methods, since protected, package-private, and private methods are not exposed
99 lines
2.2 KiB
Java
99 lines
2.2 KiB
Java
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;
|
|
|
|
@WebService
|
|
class WebServiceClass { // $ JaxWsEndpoint
|
|
|
|
@WebMethod
|
|
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
|
}
|
|
|
|
@WebEndpoint
|
|
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
|
|
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
|
}
|
|
|
|
@WebEndpoint
|
|
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
|
|
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
|
}
|
|
|
|
@WebEndpoint
|
|
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;
|
|
}
|
|
|
|
}
|