io.gravitee.am.identityprovider.api.DummyRequest Maven / Gradle / Ivy
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gravitee.am.identityprovider.api;
import io.gravitee.common.http.HttpMethod;
import io.gravitee.common.http.HttpVersion;
import io.gravitee.common.util.LinkedMultiValueMap;
import io.gravitee.common.util.MultiValueMap;
import io.gravitee.gateway.api.Request;
import io.gravitee.gateway.api.buffer.Buffer;
import io.gravitee.gateway.api.handler.Handler;
import io.gravitee.gateway.api.http.HttpHeaders;
import io.gravitee.gateway.api.http2.HttpFrame;
import io.gravitee.gateway.api.stream.ReadStream;
import io.gravitee.gateway.api.ws.WebSocket;
import io.gravitee.reporter.api.http.Metrics;
import javax.net.ssl.SSLSession;
import java.util.List;
import java.util.Map;
/**
* @author Titouan COMPIEGNE (titouan.compiegne at graviteesource.com)
* @author GraviteeSource Team
*/
public class DummyRequest implements Request {
private MultiValueMap queryParameters;
@Override
public String id() {
return null;
}
@Override
public String transactionId() {
return null;
}
@Override
public String uri() {
return null;
}
@Override
public String path() {
return null;
}
@Override
public String pathInfo() {
return null;
}
@Override
public String contextPath() {
return null;
}
@Override
public MultiValueMap parameters() {
return queryParameters;
}
@Override
public MultiValueMap pathParameters() {
return null;
}
public void setParameters(Map> parameters) {
queryParameters = new LinkedMultiValueMap(parameters);
}
@Override
public HttpHeaders headers() {
return null;
}
@Override
public HttpMethod method() {
return null;
}
@Override
public String scheme() {
return null;
}
@Override
public HttpVersion version() {
return null;
}
@Override
public long timestamp() {
return 0;
}
@Override
public String remoteAddress() {
return null;
}
@Override
public String localAddress() {
return null;
}
@Override
public SSLSession sslSession() {
return null;
}
@Override
public Metrics metrics() {
return null;
}
@Override
public boolean ended() {
return false;
}
@Override
public Request timeoutHandler(Handler timeoutHandler) {
return null;
}
@Override
public Handler timeoutHandler() {
return null;
}
@Override
public boolean isWebSocket() {
return false;
}
@Override
public WebSocket websocket() {
return null;
}
@Override
public Request customFrameHandler(Handler frameHandler) {
return null;
}
@Override
public Request closeHandler(Handler handler) {
return null;
}
@Override
public String host() {
return null;
}
@Override
public ReadStream bodyHandler(Handler bodyHandler) {
return null;
}
@Override
public ReadStream endHandler(Handler endHandler) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy