mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Manually comment out parts of stubs
This is to avoid having to make more stubs, which we don't really need
This commit is contained in:
@@ -15,28 +15,28 @@
|
||||
*/
|
||||
|
||||
package javax.ws.rs.client;
|
||||
import java.net.URI;
|
||||
// import java.net.URI;
|
||||
import javax.ws.rs.core.Configurable;
|
||||
import javax.ws.rs.core.Link;
|
||||
import javax.ws.rs.core.UriBuilder;
|
||||
import javax.net.ssl.HostnameVerifier;
|
||||
import javax.net.ssl.SSLContext;
|
||||
// import javax.ws.rs.core.Link;
|
||||
// import javax.ws.rs.core.UriBuilder;
|
||||
// import javax.net.ssl.HostnameVerifier;
|
||||
// import javax.net.ssl.SSLContext;
|
||||
|
||||
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 javax.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 javax.ws.rs.core;
|
||||
import java.net.URI;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
import javax.xml.namespace.QName;
|
||||
// import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
// import javax.xml.namespace.QName;
|
||||
|
||||
public abstract class Link {
|
||||
public abstract URI getUri();
|
||||
@@ -106,16 +106,16 @@ public abstract class Link {
|
||||
public JaxbLink(URI uri) {
|
||||
}
|
||||
|
||||
public JaxbLink(URI uri, Map<QName, Object> params) {
|
||||
}
|
||||
// public JaxbLink(URI uri, 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(Object o) {
|
||||
@@ -128,16 +128,16 @@ public abstract class Link {
|
||||
}
|
||||
|
||||
}
|
||||
public static class JaxbAdapter extends XmlAdapter<JaxbLink, Link> {
|
||||
@Override
|
||||
public Link unmarshal(JaxbLink v) {
|
||||
return null;
|
||||
}
|
||||
// public static class JaxbAdapter extends XmlAdapter<JaxbLink, Link> {
|
||||
// @Override
|
||||
// public Link unmarshal(JaxbLink v) {
|
||||
// return null;
|
||||
// }
|
||||
|
||||
@Override
|
||||
public JaxbLink marshal(Link v) {
|
||||
return null;
|
||||
}
|
||||
// @Override
|
||||
// public JaxbLink marshal(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(String name, String value) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(String name,
|
||||
@@ -28,6 +29,7 @@ public class NewCookie extends Cookie {
|
||||
String comment,
|
||||
int maxAge,
|
||||
boolean secure) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(String name,
|
||||
@@ -38,6 +40,7 @@ public class NewCookie extends Cookie {
|
||||
int maxAge,
|
||||
boolean secure,
|
||||
boolean httpOnly) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(String name,
|
||||
@@ -48,6 +51,7 @@ public class NewCookie extends Cookie {
|
||||
String comment,
|
||||
int maxAge,
|
||||
boolean secure) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(String name,
|
||||
@@ -60,15 +64,19 @@ public class NewCookie extends Cookie {
|
||||
Date expiry,
|
||||
boolean secure,
|
||||
boolean httpOnly) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(Cookie cookie) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(Cookie cookie, String comment, int maxAge, boolean secure) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public NewCookie(Cookie cookie, String comment, int maxAge, Date expiry, boolean secure, boolean httpOnly) {
|
||||
super("", "");
|
||||
}
|
||||
|
||||
public static NewCookie valueOf(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();
|
||||
|
||||
@@ -53,9 +53,9 @@ public abstract class Response implements AutoCloseable {
|
||||
|
||||
public abstract Set<String> getAllowedMethods();
|
||||
|
||||
public abstract Map<String, NewCookie> getCookies();
|
||||
// public abstract Map<String, NewCookie> getCookies();
|
||||
|
||||
public abstract EntityTag getEntityTag();
|
||||
// public abstract EntityTag getEntityTag();
|
||||
|
||||
public abstract Date getDate();
|
||||
|
||||
@@ -63,13 +63,13 @@ public abstract class Response implements AutoCloseable {
|
||||
|
||||
public abstract URI getLocation();
|
||||
|
||||
public abstract Set<Link> getLinks();
|
||||
// public abstract Set<Link> getLinks();
|
||||
|
||||
public abstract boolean hasLink(String relation);
|
||||
|
||||
public abstract Link getLink(String relation);
|
||||
// public abstract Link getLink(String relation);
|
||||
|
||||
public abstract Link.Builder getLinkBuilder(String relation);
|
||||
// public abstract Link.Builder getLinkBuilder(String relation);
|
||||
|
||||
public abstract MultivaluedMap<String, Object> getMetadata();
|
||||
|
||||
@@ -145,9 +145,9 @@ public abstract class Response implements AutoCloseable {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static ResponseBuilder notModified(EntityTag tag) {
|
||||
return null;
|
||||
}
|
||||
// public static ResponseBuilder notModified(EntityTag tag) {
|
||||
// return null;
|
||||
// }
|
||||
|
||||
public static ResponseBuilder notModified(String tag) {
|
||||
return null;
|
||||
@@ -161,9 +161,9 @@ public abstract class Response implements AutoCloseable {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static ResponseBuilder notAcceptable(List<Variant> variants) {
|
||||
return null;
|
||||
}
|
||||
// public static ResponseBuilder notAcceptable(List<Variant> variants) {
|
||||
// return null;
|
||||
// }
|
||||
|
||||
public static abstract class ResponseBuilder {
|
||||
public abstract Response build();
|
||||
@@ -247,7 +247,11 @@ public abstract class Response implements AutoCloseable {
|
||||
|
||||
}
|
||||
public enum Status implements StatusType {
|
||||
DUMMY_STATUS;
|
||||
|
||||
public enum Family {
|
||||
DUMMY_FAMILY;
|
||||
|
||||
public static Family familyOf(final int statusCode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -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, javax.ws.rs.WebApplicationException;
|
||||
InputStream entityStream) throws java.io.IOException /*, javax.ws.rs.WebApplicationException */;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user