init methods in this package now call super.init() as
they should to initialize default stuff.
This commit is contained in:
parent
e0f030a63f
commit
f35dab4eeb
6 changed files with 13 additions and 8 deletions
|
@ -31,7 +31,8 @@ public abstract class AbstractServletClient extends HttpServlet {
|
|||
boolean debug;
|
||||
|
||||
|
||||
public void init (ServletConfig init) {
|
||||
public void init (ServletConfig init) throws ServletException {
|
||||
super.init (init);
|
||||
|
||||
host = init.getInitParameter ("host");
|
||||
if (host == null) host = "localhost";
|
||||
|
|
|
@ -60,7 +60,8 @@ public class AcmeFileServlet extends FileServlet
|
|||
this.root = root;
|
||||
}
|
||||
|
||||
public void init (ServletConfig config) {
|
||||
public void init (ServletConfig config) throws ServletException {
|
||||
super.init (config);
|
||||
// do nothing
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,8 @@ public class AcmeServletClient extends HttpServlet {
|
|||
this.uploadLimit = 1024; // generous 1mb upload limit
|
||||
}
|
||||
|
||||
public void init (ServletConfig config) {
|
||||
public void init (ServletConfig config) throws ServletException {
|
||||
super.init (config);
|
||||
// do nothing
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,8 @@ public class MultiServletClient extends AbstractServletClient {
|
|||
|
||||
private HashMap apps = null;
|
||||
|
||||
public void init (ServletConfig init) {
|
||||
public void init (ServletConfig init) throws ServletException {
|
||||
super.init (init);
|
||||
apps = new HashMap ();
|
||||
super.init (init);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,8 @@ public class ServletClient extends AbstractServletClient {
|
|||
private IRemoteApp app = null;
|
||||
private String appName;
|
||||
|
||||
public void init (ServletConfig init) {
|
||||
public void init (ServletConfig init) throws ServletException {
|
||||
super.init (init);
|
||||
|
||||
appName = init.getInitParameter ("application");
|
||||
if (appName == null)
|
||||
|
|
|
@ -22,8 +22,8 @@ public class StandaloneServletClient extends AbstractServletClient {
|
|||
private String appName;
|
||||
private String serverProps;
|
||||
|
||||
public void init (ServletConfig init) {
|
||||
|
||||
public void init (ServletConfig init) throws ServletException {
|
||||
super.init (init);
|
||||
appName = init.getInitParameter ("application");
|
||||
serverProps = init.getInitParameter ("serverprops");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue