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

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

/*
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 java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Enumeration;
import java.util.Set;

import javax.servlet.RequestDispatcher;
import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;

public class InitialServletContext implements ServletContext {
	
	public InitialServletContext(){}
	
	@Override public ServletContext getContext(String uripath){throw new RuntimeException();}
	@Override public String getContextPath(){throw new RuntimeException();}
	@Override public int getMajorVersion(){throw new RuntimeException();}
	@Override public int getMinorVersion(){throw new RuntimeException();}
	@Override public String getMimeType(String file){throw new RuntimeException();}
	@Override public Set getResourcePaths(String path){throw new RuntimeException();}
	@Override public URL getResource(String path)throws MalformedURLException{throw new RuntimeException();}
	@Override public InputStream getResourceAsStream(String path){throw new RuntimeException();}
	@Override public RequestDispatcher getRequestDispatcher(String path){throw new RuntimeException();}
	@Override public RequestDispatcher getNamedDispatcher(String name){throw new RuntimeException();}
	@Override public Servlet getServlet(String name) throws ServletException{throw new RuntimeException();}
	@Override public Enumeration getServlets(){throw new RuntimeException();}
	@Override public Enumeration getServletNames(){throw new RuntimeException();}
	@Override public void log(String msg){throw new RuntimeException();}
	@Override public void log(Exception exception, String msg){throw new RuntimeException();}
	@Override public void log(String message, Throwable throwable){throw new RuntimeException();}
	@Override public String getRealPath(String path){throw new RuntimeException();}
	@Override public String getServerInfo(){throw new RuntimeException();}
	@Override public String getInitParameter(String name){throw new RuntimeException();}
	@Override public Enumeration getInitParameterNames(){throw new RuntimeException();}
	@Override public Object getAttribute(String name){throw new RuntimeException();}
	@Override public Enumeration getAttributeNames(){throw new RuntimeException();}
	@Override public void setAttribute(String name, Object object){throw new RuntimeException();}
	@Override public void removeAttribute(String name){throw new RuntimeException();}
	@Override public String getServletContextName(){throw new RuntimeException();}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy