GetGateWayServlet.java 548 B

123456789101112131415161718192021
  1. package cn.nosum.common.http.servlet.impl;
  2. import cn.nosum.common.constant.Constants;
  3. import cn.nosum.common.http.entity.Context;
  4. import cn.nosum.common.http.servlet.AbsGateWayServlet;
  5. public class GetGateWayServlet extends AbsGateWayServlet {
  6. @Override
  7. protected void doService(Context context) {
  8. }
  9. @Override
  10. protected boolean doCheck(Context context) {
  11. if (context==null){
  12. return false;
  13. }
  14. return Constants.REQUEST_METHOD_GET.equalsIgnoreCase(context.getRequest().getMethod());
  15. }
  16. }