mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
add request forgery query
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package org.springframework.core;
|
||||
|
||||
public abstract class ParameterizedTypeReference<T> {
|
||||
public java.lang.reflect.Type getType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean equals(java.lang.Object other) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public java.lang.String toString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <T> org.springframework.core.ParameterizedTypeReference<T> forType(java.lang.reflect.Type type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static java.lang.Class<?> findParameterizedTypeReferenceSubclass(java.lang.Class<?> child) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package org.springframework.http;
|
||||
|
||||
public class HttpEntity<T> {
|
||||
|
||||
protected HttpEntity() {
|
||||
}
|
||||
|
||||
public HttpEntity(T body) {
|
||||
}
|
||||
|
||||
public HttpEntity(org.springframework.util.MultiValueMap<java.lang.String, java.lang.String> headers) {
|
||||
}
|
||||
|
||||
public HttpEntity(T body, org.springframework.util.MultiValueMap<java.lang.String, java.lang.String> headers) {
|
||||
}
|
||||
|
||||
public org.springframework.http.HttpHeaders getHeaders() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public T getBody() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean hasBody() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean equals(java.lang.Object other) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public java.lang.String toString() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.springframework.http;
|
||||
|
||||
public class HttpHeaders implements java.io.Serializable {
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package org.springframework.http;
|
||||
|
||||
public enum HttpMethod {
|
||||
|
||||
GET,
|
||||
|
||||
HEAD,
|
||||
|
||||
POST,
|
||||
|
||||
PUT,
|
||||
|
||||
PATCH,
|
||||
|
||||
DELETE,
|
||||
|
||||
OPTIONS,
|
||||
|
||||
TRACE,
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
package org.springframework.http;
|
||||
|
||||
public enum HttpStatus {
|
||||
|
||||
CONTINUE,
|
||||
|
||||
SWITCHING_PROTOCOLS,
|
||||
|
||||
PROCESSING,
|
||||
|
||||
CHECKPOINT,
|
||||
|
||||
OK,
|
||||
|
||||
CREATED,
|
||||
|
||||
ACCEPTED,
|
||||
|
||||
NON_AUTHORITATIVE_INFORMATION,
|
||||
|
||||
NO_CONTENT,
|
||||
|
||||
RESET_CONTENT,
|
||||
|
||||
PARTIAL_CONTENT,
|
||||
|
||||
MULTI_STATUS,
|
||||
|
||||
ALREADY_REPORTED,
|
||||
|
||||
IM_USED,
|
||||
|
||||
MULTIPLE_CHOICES,
|
||||
|
||||
MOVED_PERMANENTLY,
|
||||
|
||||
FOUND,
|
||||
|
||||
@java.lang.Deprecated
|
||||
MOVED_TEMPORARILY,
|
||||
|
||||
SEE_OTHER,
|
||||
|
||||
NOT_MODIFIED,
|
||||
|
||||
@java.lang.Deprecated
|
||||
USE_PROXY,
|
||||
|
||||
TEMPORARY_REDIRECT,
|
||||
|
||||
PERMANENT_REDIRECT,
|
||||
|
||||
BAD_REQUEST,
|
||||
|
||||
UNAUTHORIZED,
|
||||
|
||||
PAYMENT_REQUIRED,
|
||||
|
||||
FORBIDDEN,
|
||||
|
||||
NOT_FOUND,
|
||||
|
||||
METHOD_NOT_ALLOWED,
|
||||
|
||||
NOT_ACCEPTABLE,
|
||||
|
||||
PROXY_AUTHENTICATION_REQUIRED,
|
||||
|
||||
REQUEST_TIMEOUT,
|
||||
|
||||
CONFLICT,
|
||||
|
||||
GONE,
|
||||
|
||||
LENGTH_REQUIRED,
|
||||
|
||||
PRECONDITION_FAILED,
|
||||
|
||||
PAYLOAD_TOO_LARGE,
|
||||
|
||||
@java.lang.Deprecated
|
||||
REQUEST_ENTITY_TOO_LARGE,
|
||||
|
||||
URI_TOO_LONG,
|
||||
|
||||
@java.lang.Deprecated
|
||||
REQUEST_URI_TOO_LONG,
|
||||
|
||||
UNSUPPORTED_MEDIA_TYPE,
|
||||
|
||||
REQUESTED_RANGE_NOT_SATISFIABLE,
|
||||
|
||||
EXPECTATION_FAILED,
|
||||
|
||||
I_AM_A_TEAPOT,
|
||||
|
||||
@java.lang.Deprecated
|
||||
INSUFFICIENT_SPACE_ON_RESOURCE,
|
||||
|
||||
@java.lang.Deprecated
|
||||
METHOD_FAILURE,
|
||||
|
||||
@java.lang.Deprecated
|
||||
DESTINATION_LOCKED,
|
||||
|
||||
UNPROCESSABLE_ENTITY,
|
||||
|
||||
LOCKED,
|
||||
|
||||
FAILED_DEPENDENCY,
|
||||
|
||||
TOO_EARLY,
|
||||
|
||||
UPGRADE_REQUIRED,
|
||||
|
||||
PRECONDITION_REQUIRED,
|
||||
|
||||
TOO_MANY_REQUESTS,
|
||||
|
||||
REQUEST_HEADER_FIELDS_TOO_LARGE,
|
||||
|
||||
UNAVAILABLE_FOR_LEGAL_REASONS,
|
||||
|
||||
INTERNAL_SERVER_ERROR,
|
||||
|
||||
NOT_IMPLEMENTED,
|
||||
|
||||
BAD_GATEWAY,
|
||||
|
||||
SERVICE_UNAVAILABLE,
|
||||
|
||||
GATEWAY_TIMEOUT,
|
||||
|
||||
HTTP_VERSION_NOT_SUPPORTED,
|
||||
|
||||
VARIANT_ALSO_NEGOTIATES,
|
||||
|
||||
INSUFFICIENT_STORAGE,
|
||||
|
||||
LOOP_DETECTED,
|
||||
|
||||
BANDWIDTH_LIMIT_EXCEEDED,
|
||||
|
||||
NOT_EXTENDED,
|
||||
|
||||
NETWORK_AUTHENTICATION_REQUIRED,
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package org.springframework.http;
|
||||
|
||||
public class RequestEntity<T> extends org.springframework.http.HttpEntity {
|
||||
|
||||
public RequestEntity(org.springframework.http.HttpMethod method, java.net.URI url) {
|
||||
}
|
||||
|
||||
public RequestEntity(T body, org.springframework.http.HttpMethod method, java.net.URI url) {
|
||||
}
|
||||
|
||||
public RequestEntity(T body, org.springframework.http.HttpMethod method, java.net.URI url,
|
||||
java.lang.reflect.Type type) {
|
||||
}
|
||||
|
||||
public RequestEntity(org.springframework.util.MultiValueMap<java.lang.String, java.lang.String> headers,
|
||||
org.springframework.http.HttpMethod method, java.net.URI url) {
|
||||
}
|
||||
|
||||
public RequestEntity(T body, org.springframework.util.MultiValueMap<java.lang.String, java.lang.String> headers,
|
||||
org.springframework.http.HttpMethod method, java.net.URI url) {
|
||||
}
|
||||
|
||||
public RequestEntity(T body, org.springframework.util.MultiValueMap<java.lang.String, java.lang.String> headers,
|
||||
org.springframework.http.HttpMethod method, java.net.URI url, java.lang.reflect.Type type) {
|
||||
}
|
||||
|
||||
public java.net.URI getUrl() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static org.springframework.http.RequestEntity.BodyBuilder method(org.springframework.http.HttpMethod method,
|
||||
java.net.URI url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static org.springframework.http.RequestEntity.HeadersBuilder get(java.net.URI url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static org.springframework.http.RequestEntity.HeadersBuilder head(java.net.URI url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static org.springframework.http.RequestEntity.BodyBuilder post(java.net.URI url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static org.springframework.http.RequestEntity.BodyBuilder put(java.net.URI url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static org.springframework.http.RequestEntity.BodyBuilder patch(java.net.URI url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static org.springframework.http.RequestEntity.HeadersBuilder delete(java.net.URI url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static org.springframework.http.RequestEntity.HeadersBuilder options(java.net.URI url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
class HeadersBuilder<K> {
|
||||
}
|
||||
|
||||
public class BodyBuilder<T> {
|
||||
public RequestEntity<T> body(Object body){return null;};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.springframework.http;
|
||||
|
||||
public class ResponseEntity<T> extends org.springframework.http.HttpEntity {
|
||||
|
||||
// private final java.lang.Object status;
|
||||
|
||||
// public ResponseEntity(org.springframework.http.HttpStatus status) {
|
||||
// }
|
||||
|
||||
// public ResponseEntity(T body, org.springframework.http.HttpStatus status) {
|
||||
// }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.springframework.http.client;
|
||||
|
||||
public abstract interface ClientHttpResponse {
|
||||
|
||||
public abstract org.springframework.http.HttpStatus getStatusCode() throws java.io.IOException;
|
||||
|
||||
public abstract int getRawStatusCode() throws java.io.IOException;
|
||||
|
||||
public abstract java.lang.String getStatusText() throws java.io.IOException;
|
||||
|
||||
public abstract void close();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.springframework.web.client;
|
||||
|
||||
public abstract interface RequestCallback {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.springframework.web.client;
|
||||
|
||||
public abstract interface ResponseExtractor<K> {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.springframework.web.client;
|
||||
|
||||
public class RestClientException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = -4084444984163796577L;
|
||||
|
||||
public RestClientException(java.lang.String msg) {
|
||||
}
|
||||
|
||||
public RestClientException(java.lang.String msg, java.lang.Throwable ex) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,237 @@
|
||||
package org.springframework.web.client;
|
||||
|
||||
public class RestTemplate {
|
||||
|
||||
public <T> T getForObject(java.lang.String url, java.lang.Class<T> responseType, java.lang.Object... uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T getForObject(java.lang.String url, java.lang.Class<T> responseType,
|
||||
java.util.Map<java.lang.String, ?> uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T getForObject(java.net.URI url, java.lang.Class<T> responseType)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> getForEntity(java.lang.String url,
|
||||
java.lang.Class<T> responseType, java.lang.Object... uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> getForEntity(java.lang.String url,
|
||||
java.lang.Class<T> responseType, java.util.Map<java.lang.String, ?> uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> getForEntity(java.net.URI url,
|
||||
java.lang.Class<T> responseType) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public org.springframework.http.HttpHeaders headForHeaders(java.lang.String url, java.lang.Object... uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public org.springframework.http.HttpHeaders headForHeaders(java.lang.String url,
|
||||
java.util.Map<java.lang.String, ?> uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public org.springframework.http.HttpHeaders headForHeaders(java.net.URI url)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public java.net.URI postForLocation(java.lang.String url, java.lang.Object request,
|
||||
java.lang.Object... uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public java.net.URI postForLocation(java.lang.String url, java.lang.Object request,
|
||||
java.util.Map<java.lang.String, ?> uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public java.net.URI postForLocation(java.net.URI url, java.lang.Object request)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T postForObject(java.lang.String url, java.lang.Object request, java.lang.Class<T> responseType,
|
||||
java.lang.Object... uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T postForObject(java.lang.String url, java.lang.Object request, java.lang.Class<T> responseType,
|
||||
java.util.Map<java.lang.String, ?> uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T postForObject(java.net.URI url, java.lang.Object request, java.lang.Class<T> responseType)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> postForEntity(java.lang.String url, java.lang.Object request,
|
||||
java.lang.Class<T> responseType, java.lang.Object... uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> postForEntity(java.lang.String url, java.lang.Object request,
|
||||
java.lang.Class<T> responseType, java.util.Map<java.lang.String, ?> uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> postForEntity(java.net.URI url, java.lang.Object request,
|
||||
java.lang.Class<T> responseType) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void put(java.lang.String url, java.lang.Object request, java.lang.Object... uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
}
|
||||
|
||||
public void put(java.lang.String url, java.lang.Object request, java.util.Map<java.lang.String, ?> uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
}
|
||||
|
||||
public void put(java.net.URI url, java.lang.Object request)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
}
|
||||
|
||||
public <T> T patchForObject(java.lang.String url, java.lang.Object request, java.lang.Class<T> responseType,
|
||||
java.lang.Object... uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T patchForObject(java.lang.String url, java.lang.Object request, java.lang.Class<T> responseType,
|
||||
java.util.Map<java.lang.String, ?> uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T patchForObject(java.net.URI url, java.lang.Object request, java.lang.Class<T> responseType)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void delete(java.lang.String url, java.lang.Object... uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
}
|
||||
|
||||
public void delete(java.lang.String url, java.util.Map<java.lang.String, ?> uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
}
|
||||
|
||||
public void delete(java.net.URI url) throws org.springframework.web.client.RestClientException {
|
||||
}
|
||||
|
||||
public java.util.Set<org.springframework.http.HttpMethod> optionsForAllow(java.lang.String url,
|
||||
java.lang.Object... uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public java.util.Set<org.springframework.http.HttpMethod> optionsForAllow(java.lang.String url,
|
||||
java.util.Map<java.lang.String, ?> uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public java.util.Set<org.springframework.http.HttpMethod> optionsForAllow(java.net.URI url)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> exchange(java.lang.String url,
|
||||
org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity,
|
||||
java.lang.Class<T> responseType, java.lang.Object... uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> exchange(java.lang.String url,
|
||||
org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity,
|
||||
java.lang.Class<T> responseType, java.util.Map<java.lang.String, ?> uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> exchange(java.net.URI url,
|
||||
org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity,
|
||||
java.lang.Class<T> responseType) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> exchange(java.lang.String url,
|
||||
org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity,
|
||||
org.springframework.core.ParameterizedTypeReference<T> responseType, java.lang.Object... uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> exchange(java.lang.String url,
|
||||
org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity,
|
||||
org.springframework.core.ParameterizedTypeReference<T> responseType,
|
||||
java.util.Map<java.lang.String, ?> uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> exchange(java.net.URI url,
|
||||
org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity,
|
||||
org.springframework.core.ParameterizedTypeReference<T> responseType)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> exchange(
|
||||
org.springframework.http.RequestEntity<?> requestEntity, java.lang.Class<T> responseType)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> org.springframework.http.ResponseEntity<T> exchange(
|
||||
org.springframework.http.RequestEntity<?> requestEntity,
|
||||
org.springframework.core.ParameterizedTypeReference<T> responseType)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T execute(java.lang.String url, org.springframework.http.HttpMethod method,
|
||||
org.springframework.web.client.RequestCallback requestCallback,
|
||||
org.springframework.web.client.ResponseExtractor<T> responseExtractor, java.lang.Object... uriVariables)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T execute(java.lang.String url, org.springframework.http.HttpMethod method,
|
||||
org.springframework.web.client.RequestCallback requestCallback,
|
||||
org.springframework.web.client.ResponseExtractor<T> responseExtractor,
|
||||
java.util.Map<java.lang.String, ?> uriVariables) throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> T execute(java.net.URI url, org.springframework.http.HttpMethod method,
|
||||
org.springframework.web.client.RequestCallback requestCallback,
|
||||
org.springframework.web.client.ResponseExtractor<T> responseExtractor)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected <T> T doExecute(java.net.URI url, org.springframework.http.HttpMethod method,
|
||||
org.springframework.web.client.RequestCallback requestCallback,
|
||||
org.springframework.web.client.ResponseExtractor<T> responseExtractor)
|
||||
throws org.springframework.web.client.RestClientException {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected void handleResponse(java.net.URI url, org.springframework.http.HttpMethod method,
|
||||
org.springframework.http.client.ClientHttpResponse response) throws java.io.IOException {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user