com.googlecode.mycontainer.web.AdapterHttpServlet Maven / Gradle / Ivy
package com.googlecode.mycontainer.web;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class AdapterHttpServlet extends HttpServlet {
private static final long serialVersionUID = -3415021359536710294L;
private final SpecServlet servlet;
public AdapterHttpServlet(SpecServlet servlet) {
this.servlet = servlet;
}
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
servlet.doGet(req, resp);
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
servlet.doPost(req, resp);
}
@Override
protected void doPut(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
servlet.doPut(req, resp);
}
@Override
protected void doDelete(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
servlet.doDelete(req, resp);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy