Komplettes G-Earth Paket inkl. JRE, Extensions und Tools. Extensions: - G-BuildTools, G-Click Ultimate, G-Loader, G-Manipulate - G-Presets, G-Translator, G-Trigger, G-itemViewer - Market Utils, Packet Info Explorer, Plants - RandomRoomVisitor, RoomLogger, Sanbovir Photo Inspector - SpyFriends, WallAligner, XabboScripter, xabbo
96 lines
2.6 KiB
Java
96 lines
2.6 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.servlet;
|
|
|
|
import java.io.IOException;
|
|
import java.io.Serializable;
|
|
import java.util.Enumeration;
|
|
import java.util.ResourceBundle;
|
|
import javax.servlet.Servlet;
|
|
import javax.servlet.ServletConfig;
|
|
import javax.servlet.ServletContext;
|
|
import javax.servlet.ServletException;
|
|
import javax.servlet.ServletRequest;
|
|
import javax.servlet.ServletResponse;
|
|
|
|
public abstract class GenericServlet
|
|
implements Servlet,
|
|
ServletConfig,
|
|
Serializable {
|
|
private static final String LSTRING_FILE = "javax.servlet.LocalStrings";
|
|
private static ResourceBundle lStrings = ResourceBundle.getBundle("javax.servlet.LocalStrings");
|
|
private transient ServletConfig config;
|
|
|
|
@Override
|
|
public void destroy() {
|
|
}
|
|
|
|
@Override
|
|
public String getInitParameter(String name) {
|
|
ServletConfig sc = this.getServletConfig();
|
|
if (sc == null) {
|
|
throw new IllegalStateException(lStrings.getString("err.servlet_config_not_initialized"));
|
|
}
|
|
return sc.getInitParameter(name);
|
|
}
|
|
|
|
@Override
|
|
public Enumeration<String> getInitParameterNames() {
|
|
ServletConfig sc = this.getServletConfig();
|
|
if (sc == null) {
|
|
throw new IllegalStateException(lStrings.getString("err.servlet_config_not_initialized"));
|
|
}
|
|
return sc.getInitParameterNames();
|
|
}
|
|
|
|
@Override
|
|
public ServletConfig getServletConfig() {
|
|
return this.config;
|
|
}
|
|
|
|
@Override
|
|
public ServletContext getServletContext() {
|
|
ServletConfig sc = this.getServletConfig();
|
|
if (sc == null) {
|
|
throw new IllegalStateException(lStrings.getString("err.servlet_config_not_initialized"));
|
|
}
|
|
return sc.getServletContext();
|
|
}
|
|
|
|
@Override
|
|
public String getServletInfo() {
|
|
return "";
|
|
}
|
|
|
|
@Override
|
|
public void init(ServletConfig config) throws ServletException {
|
|
this.config = config;
|
|
this.init();
|
|
}
|
|
|
|
public void init() throws ServletException {
|
|
}
|
|
|
|
public void log(String msg) {
|
|
this.getServletContext().log(this.getServletName() + ": " + msg);
|
|
}
|
|
|
|
public void log(String message, Throwable t) {
|
|
this.getServletContext().log(this.getServletName() + ": " + message, t);
|
|
}
|
|
|
|
@Override
|
|
public abstract void service(ServletRequest var1, ServletResponse var2) throws ServletException, IOException;
|
|
|
|
@Override
|
|
public String getServletName() {
|
|
ServletConfig sc = this.getServletConfig();
|
|
if (sc == null) {
|
|
throw new IllegalStateException(lStrings.getString("err.servlet_config_not_initialized"));
|
|
}
|
|
return sc.getServletName();
|
|
}
|
|
}
|
|
|