This commit is contained in:
Oleg Zhurakousky
2023-09-20 16:11:53 +02:00
parent 43ce33cc08
commit f917c315c7

View File

@@ -75,27 +75,27 @@ public class ProxyServletContext implements ServletContext {
@Override
public ServletContext getContext(String uripath) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container1");
}
@Override
public int getMajorVersion() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container2");
}
@Override
public int getMinorVersion() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container3");
}
@Override
public int getEffectiveMajorVersion() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container4");
}
@Override
public int getEffectiveMinorVersion() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container5");
}
@Override
@@ -105,12 +105,12 @@ public class ProxyServletContext implements ServletContext {
@Override
public Set<String> getResourcePaths(String path) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container6");
}
@Override
public URL getResource(String path) throws MalformedURLException {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container7");
}
@Override
@@ -120,12 +120,12 @@ public class ProxyServletContext implements ServletContext {
@Override
public RequestDispatcher getRequestDispatcher(String path) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container8");
}
@Override
public RequestDispatcher getNamedDispatcher(String name) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container9");
}
@Override
@@ -140,7 +140,7 @@ public class ProxyServletContext implements ServletContext {
@Override
public String getRealPath(String path) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container10");
}
@Override
@@ -158,7 +158,7 @@ public class ProxyServletContext implements ServletContext {
@Override
public boolean setInitParameter(String name, String value) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container11");
}
@Override
@@ -172,17 +172,17 @@ public class ProxyServletContext implements ServletContext {
@Override
public void removeAttribute(String name) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container12");
}
@Override
public String getServletContextName() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container13");
}
@Override
public Dynamic addServlet(String servletName, String className) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container14");
}
Map<String, ServletRegistration> registrations = new HashMap<>();
@@ -197,17 +197,17 @@ public class ProxyServletContext implements ServletContext {
@Override
public Dynamic addServlet(String servletName, Class<? extends Servlet> servletClass) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container15");
}
@Override
public Dynamic addJspFile(String jspName, String jspFile) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container16");
}
@Override
public <T extends Servlet> T createServlet(Class<T> c) throws ServletException {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container17");
}
@Override
@@ -222,7 +222,7 @@ public class ProxyServletContext implements ServletContext {
@Override
public FilterRegistration.Dynamic addFilter(String filterName, String className) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container18");
}
@Override
@@ -249,7 +249,7 @@ public class ProxyServletContext implements ServletContext {
@Override
public <T extends Filter> T createFilter(Class<T> c) throws ServletException {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container19");
}
@Override
@@ -264,27 +264,27 @@ public class ProxyServletContext implements ServletContext {
@Override
public SessionCookieConfig getSessionCookieConfig() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container20");
}
@Override
public void setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container21");
}
@Override
public Set<SessionTrackingMode> getDefaultSessionTrackingModes() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container22");
}
@Override
public Set<SessionTrackingMode> getEffectiveSessionTrackingModes() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container23");
}
@Override
public void addListener(String className) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container24");
}
@Override
@@ -295,61 +295,61 @@ public class ProxyServletContext implements ServletContext {
@Override
public void addListener(Class<? extends EventListener> listenerClass) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container25");
}
@Override
public <T extends EventListener> T createListener(Class<T> c) throws ServletException {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container26");
}
@Override
public JspConfigDescriptor getJspConfigDescriptor() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container27");
}
@Override
public ClassLoader getClassLoader() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container28");
}
@Override
public void declareRoles(String... roleNames) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container29");
}
@Override
public String getVirtualServerName() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container30");
}
@Override
public int getSessionTimeout() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container31");
}
@Override
public void setSessionTimeout(int sessionTimeout) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container32");
}
@Override
public String getRequestCharacterEncoding() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container33");
}
@Override
public void setRequestCharacterEncoding(String encoding) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container34");
}
@Override
public String getResponseCharacterEncoding() {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container35");
}
@Override
public void setResponseCharacterEncoding(String encoding) {
throw new UnsupportedOperationException("This ServletContext does not represent a running web container");
throw new UnsupportedOperationException("This ServletContext does not represent a running web container36");
}
}