congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
OrderedHiddenHttpMethodFilter$HttpMethodRequestWrapper
Code IndexAdd Tabnine to your IDE (free)

How to use
OrderedHiddenHttpMethodFilter$HttpMethodRequestWrapper
in
cn.bestwu.simpleframework.web.filter

Best Java code snippets using cn.bestwu.simpleframework.web.filter.OrderedHiddenHttpMethodFilter$HttpMethodRequestWrapper (Showing top 2 results out of 315)

origin: cn.bestwu.simpleframework/simpleframework-web

@Override
protected void doFilterInternal(HttpServletRequest request,
  HttpServletResponse response, FilterChain filterChain)
  throws ServletException, IOException {
 String paramValue = request.getParameter(this.methodParam);
 if (StringUtils.hasLength(paramValue)) {
  String _method = request.getMethod();
  String method = paramValue.toUpperCase(Locale.ENGLISH);
  if (("POST".equals(_method) && "PUT".equals(method))
    || ("GET".equals(_method) && "DELETE".equals(method))) {
   HttpServletRequest wrapper = new HttpMethodRequestWrapper(
     request, method);
   filterChain.doFilter(wrapper, response);
  }
 } else {
  filterChain.doFilter(request, response);
 }
}
origin: cn.bestwu.simpleframework/simpleframework-core

@Override
protected void doFilterInternal(HttpServletRequest request,
  HttpServletResponse response, FilterChain filterChain)
  throws ServletException, IOException {
 String paramValue = request.getParameter(this.methodParam);
 if (StringUtils.hasLength(paramValue)) {
  String _method = request.getMethod();
  String method = paramValue.toUpperCase(Locale.ENGLISH);
  if (("POST".equals(_method) && "PUT".equals(method))
    || ("GET".equals(_method) && "DELETE".equals(method))) {
   HttpServletRequest wrapper = new HttpMethodRequestWrapper(
     request, method);
   filterChain.doFilter(wrapper, response);
  }
 } else {
  filterChain.doFilter(request, response);
 }
}
cn.bestwu.simpleframework.web.filterOrderedHiddenHttpMethodFilter$HttpMethodRequestWrapper

Javadoc

Simple HttpServletRequest wrapper that returns the supplied method for HttpServletRequest#getMethod().

Most used methods

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • Kernel (java.awt.image)
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JPanel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now