All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cat.inspiracio.servlet.http.InitialHttpServletRequest Maven / Gradle / Ivy

Go to download

Dummy Servlet provides some implementations for the interfaces and classes of the Java Servlet spec that are useful for testing and simulation. Version 5.0.0 is for Servlet 5.0.0.

The newest version!
/*
Copyright 2016 Alexander Bunkenburg

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 cat.inspiracio.servlet.http;

import cat.inspiracio.servlet.InitialServletRequest;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.*;

import java.io.IOException;
import java.security.Principal;
import java.util.Collection;
import java.util.Enumeration;

/** All methods throw RuntimeException. */
public class InitialHttpServletRequest extends InitialServletRequest implements HttpServletRequest {

	/** Make one. */
	protected InitialHttpServletRequest(){super();}

	@Override public boolean authenticate(HttpServletResponse httpServletResponse) throws IOException, ServletException {throw new RuntimeException();}
	@Override public String changeSessionId(){throw new RuntimeException();}
	@Override public String getAuthType(){throw new RuntimeException();}
	@Override public String getContextPath(){throw new RuntimeException();}
	@Override public Cookie[] getCookies(){throw new RuntimeException();}
	@Override public long getDateHeader(String name){throw new RuntimeException();}
	@Override public String getHeader(String name){throw new RuntimeException();}
	@Override public Enumeration getHeaderNames(){throw new RuntimeException();}
	@Override public Enumeration getHeaders(String name){throw new RuntimeException();}
	@Override public int getIntHeader(String name){throw new RuntimeException();}
	@Override public String getMethod(){throw new RuntimeException();}
	@Override public Part getPart(String s) throws IOException, ServletException {throw new RuntimeException();}
	@Override public Collection getParts() throws IOException, ServletException {throw new RuntimeException();}
	@Override public String getPathTranslated(){throw new RuntimeException();}
	@Override public String getPathInfo(){throw new RuntimeException();}
	@Override public String getQueryString(){throw new RuntimeException();}
	@Override public String getRemoteUser(){throw new RuntimeException();}
	@Override public String getRequestedSessionId(){throw new RuntimeException();}
	@Override public String getRequestURI(){throw new RuntimeException();}
	@Override public StringBuffer getRequestURL(){throw new RuntimeException();}
	@Override public String getServletPath(){throw new RuntimeException();}
	@Override public HttpSession getSession(){throw new RuntimeException();}
	@Override public HttpSession getSession(boolean create){throw new RuntimeException();}
	@Override public Principal getUserPrincipal(){throw new RuntimeException();}
	@Override public boolean isRequestedSessionIdFromCookie(){throw new RuntimeException();}
	@Override public boolean isRequestedSessionIdFromURL(){throw new RuntimeException();}
	@Override public boolean isRequestedSessionIdValid(){throw new RuntimeException();}
	@Override public boolean isUserInRole(String role){throw new RuntimeException();}
	@Override public void login(String s, String s1) throws ServletException {throw new RuntimeException();}
	@Override public void logout() throws ServletException {throw new RuntimeException();}
	@Override public  T upgrade(Class aClass) throws IOException, ServletException {throw new RuntimeException();}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy