mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Comment out stubs (Jakarta)
This commit is contained in:
@@ -15,28 +15,28 @@
|
||||
*/
|
||||
|
||||
package jakarta.ws.rs.client;
|
||||
import java.net.URI;
|
||||
import javax.net.ssl.HostnameVerifier;
|
||||
import javax.net.ssl.SSLContext;
|
||||
// import java.net.URI;
|
||||
// import javax.net.ssl.HostnameVerifier;
|
||||
// import javax.net.ssl.SSLContext;
|
||||
import jakarta.ws.rs.core.Configurable;
|
||||
import jakarta.ws.rs.core.Link;
|
||||
import jakarta.ws.rs.core.UriBuilder;
|
||||
// import jakarta.ws.rs.core.Link;
|
||||
// import jakarta.ws.rs.core.UriBuilder;
|
||||
|
||||
public interface Client extends Configurable<Client> {
|
||||
public void close();
|
||||
|
||||
public WebTarget target(String uri);
|
||||
// public WebTarget target(String uri);
|
||||
|
||||
public WebTarget target(URI uri);
|
||||
// public WebTarget target(URI uri);
|
||||
|
||||
public WebTarget target(UriBuilder uriBuilder);
|
||||
// public WebTarget target(UriBuilder uriBuilder);
|
||||
|
||||
public WebTarget target(Link link);
|
||||
// public WebTarget target(Link link);
|
||||
|
||||
public Invocation.Builder invocation(Link link);
|
||||
// public Invocation.Builder invocation(Link link);
|
||||
|
||||
public SSLContext getSslContext();
|
||||
// public SSLContext getSslContext();
|
||||
|
||||
public HostnameVerifier getHostnameVerifier();
|
||||
// public HostnameVerifier getHostnameVerifier();
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ package jakarta.ws.rs.core;
|
||||
import java.util.Map;
|
||||
|
||||
public interface Configurable<C extends Configurable> {
|
||||
public Configuration getConfiguration();
|
||||
// public Configuration getConfiguration();
|
||||
|
||||
public C property(String name, Object value);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ package jakarta.ws.rs.core;
|
||||
import java.net.URI;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import javax.xml.namespace.QName;
|
||||
import jakarta.xml.bind.annotation.adapters.XmlAdapter;
|
||||
// import javax.xml.namespace.QName;
|
||||
// import jakarta.xml.bind.annotation.adapters.XmlAdapter;
|
||||
|
||||
public abstract class Link {
|
||||
public abstract URI getUri();
|
||||
@@ -106,16 +106,16 @@ public abstract class Link {
|
||||
public JaxbLink(final URI uri) {
|
||||
}
|
||||
|
||||
public JaxbLink(final URI uri, final Map<QName, Object> params) {
|
||||
}
|
||||
// public JaxbLink(final URI uri, final Map<QName, Object> params) {
|
||||
// }
|
||||
|
||||
public URI getUri() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Map<QName, Object> getParams() {
|
||||
return null;
|
||||
}
|
||||
// public Map<QName, Object> getParams() {
|
||||
// return null;
|
||||
// }
|
||||
|
||||
@Override
|
||||
public boolean equals(final Object o) {
|
||||
@@ -128,16 +128,16 @@ public abstract class Link {
|
||||
}
|
||||
|
||||
}
|
||||
public static class JaxbAdapter extends XmlAdapter<JaxbLink, Link> {
|
||||
@Override
|
||||
public Link unmarshal(final JaxbLink v) {
|
||||
return null;
|
||||
}
|
||||
// public static class JaxbAdapter extends XmlAdapter<JaxbLink, Link> {
|
||||
// @Override
|
||||
// public Link unmarshal(final JaxbLink v) {
|
||||
// return null;
|
||||
// }
|
||||
|
||||
@Override
|
||||
public JaxbLink marshal(final Link v) {
|
||||
return null;
|
||||
}
|
||||
// @Override
|
||||
// public JaxbLink marshal(final Link v) {
|
||||
// return null;
|
||||
// }
|
||||
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -36,10 +36,16 @@ public class MediaType {
|
||||
|
||||
public final static MediaType APPLICATION_OCTET_STREAM_TYPE = new MediaType("application", "octet-stream");
|
||||
|
||||
public final static String TEXT_PLAIN = "text/plain";
|
||||
|
||||
public final static MediaType TEXT_PLAIN_TYPE = new MediaType("text", "plain");
|
||||
|
||||
public final static String TEXT_XML = "text/xml";
|
||||
|
||||
public final static MediaType TEXT_XML_TYPE = new MediaType("text", "xml");
|
||||
|
||||
public final static String TEXT_HTML = "text/html";
|
||||
|
||||
public final static MediaType TEXT_HTML_TYPE = new MediaType("text", "html");
|
||||
|
||||
public static final MediaType SERVER_SENT_EVENTS_TYPE = new MediaType("text", "event-stream");
|
||||
|
||||
@@ -19,6 +19,7 @@ import java.util.Date;
|
||||
|
||||
public class NewCookie extends Cookie {
|
||||
public NewCookie(final String name, final String value) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(final String name,
|
||||
@@ -28,6 +29,7 @@ public class NewCookie extends Cookie {
|
||||
final String comment,
|
||||
final int maxAge,
|
||||
final boolean secure) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(final String name,
|
||||
@@ -38,6 +40,7 @@ public class NewCookie extends Cookie {
|
||||
final int maxAge,
|
||||
final boolean secure,
|
||||
final boolean httpOnly) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(final String name,
|
||||
@@ -48,6 +51,7 @@ public class NewCookie extends Cookie {
|
||||
final String comment,
|
||||
final int maxAge,
|
||||
final boolean secure) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(final String name,
|
||||
@@ -60,15 +64,19 @@ public class NewCookie extends Cookie {
|
||||
final Date expiry,
|
||||
final boolean secure,
|
||||
final boolean httpOnly) {
|
||||
}
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(final Cookie cookie) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(final Cookie cookie, final String comment, final int maxAge, final boolean secure) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(final Cookie cookie, final String comment, final int maxAge, final Date expiry, final boolean secure, final boolean httpOnly) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public static NewCookie valueOf(final String value) {
|
||||
|
||||
@@ -32,11 +32,11 @@ public abstract class Response implements AutoCloseable {
|
||||
|
||||
public abstract <T> T readEntity(Class<T> entityType);
|
||||
|
||||
public abstract <T> T readEntity(GenericType<T> entityType);
|
||||
// public abstract <T> T readEntity(GenericType<T> entityType);
|
||||
|
||||
public abstract <T> T readEntity(Class<T> entityType, Annotation[] annotations);
|
||||
|
||||
public abstract <T> T readEntity(GenericType<T> entityType, Annotation[] annotations);
|
||||
// public abstract <T> T readEntity(GenericType<T> entityType, Annotation[] annotations);
|
||||
|
||||
public abstract boolean hasEntity();
|
||||
|
||||
|
||||
@@ -28,6 +28,6 @@ public interface MessageBodyReader<T> {
|
||||
public T readFrom(Class<T> type, Type genericType,
|
||||
Annotation[] annotations, MediaType mediaType,
|
||||
MultivaluedMap<String, String> httpHeaders,
|
||||
InputStream entityStream) throws java.io.IOException, jakarta.ws.rs.WebApplicationException;
|
||||
InputStream entityStream) throws java.io.IOException /*, jakarta.ws.rs.WebApplicationException */;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user