javax.servlet.http.HttpServletRequestWrapper.getMethod()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.getMethod()方法的一些代码示例,展示了HttpServletRequestWrapper.getMethod()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.getMethod()方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:getMethod

HttpServletRequestWrapper.getMethod介绍

[英]The default behavior of this method is to return getMethod() on the wrapped request object.
[中]此方法的默认行为是在包装的请求对象上返回getMethod()。

代码示例

代码示例来源:origin: cloudfoundry/uaa

@Override
public String getMethod() {
  return super.getMethod();
}

代码示例来源:origin: org.springframework.boot/spring-boot

@Override
public String getMethod() {
  return (this.simulateGetMethod ? HttpMethod.GET.toString()
      : super.getMethod());
}

代码示例来源:origin: org.seleniumhq.selenium.server/selenium-server-coreless

public String getMethod()
  {
    if (this._filterType==Dispatcher.__ERROR)
      return org.openqa.jetty.http.HttpRequest.__GET;
    return super.getMethod();
  }
}

代码示例来源:origin: com.atlassian.jira/jira-core

@Override
public String getMethod()
{
  String method = super.getMethod();
  return method;
}

代码示例来源:origin: suninformation/ymate-platform-v2

@Override
  public String getMethod() {
    if (method == null) {
      return super.getMethod();
    }
    return method;
  }
}

代码示例来源:origin: org.keycloak/keycloak-servlet-adapter-spi

@Override
public String getMethod() {
  if (needRequestRestore) {
    return method;
  } else {
    return super.getMethod();
  }
}

代码示例来源:origin: org.seleniumhq.selenium/jetty-rc-repacked

public String getMethod()
  {
    if (this._filterType==Dispatcher.__ERROR)
      return org.openqa.jetty.http.HttpRequest.__GET;
    return super.getMethod();
  }
}

代码示例来源:origin: paultuckey/urlrewritefilter

public String getMethod() {
    if (overridenMethod != null) return overridenMethod;
    return super.getMethod();
  }
}

代码示例来源:origin: org.tuckey/urlrewritefilter

public String getMethod() {
    if (overridenMethod != null) return overridenMethod;
    return super.getMethod();
  }
}

代码示例来源:origin: com.github.wuic/wuic-servlet

/**
 * {@inheritDoc}
 */
@Override
public String getMethod() {
  // Synchronized access
  synchronized (mutex) {
    return super.getMethod();
  }
}

代码示例来源:origin: riotfamily/riot

@Override
public String getMethod() {
  return method != null ? method : super.getMethod();
}

代码示例来源:origin: org.apache.wink/wink-server

@Override
public String getMethod() {
  return getCorrectRequest().getMethod();
}

代码示例来源:origin: securityfilter/securityfilter

/**
* Returns the HTTP method used to make this request. If the savedRequest is non-null,
* the HTTP method of the saved request will be returned.
*/
public String getMethod() {
 if (savedRequest != null) {
   return savedRequest.getMethod();
 } else {
   return super.getMethod();
 }
}

代码示例来源:origin: Jasig/uPortal

@Override
public String getMethod() {
  this.checkState();
  return super.getMethod();
}

代码示例来源:origin: org.jasig.portal/uPortal-rendering

@Override
public String getMethod() {
  this.checkState();
  return super.getMethod();
}

代码示例来源:origin: org.jvnet.hudson.winstone/winstone

public String getMethod() {
  if (hasBeenForwarded()) {
    return super.getMethod();
  } else {
    return this.oldRequest.getMethod();
  }
}

代码示例来源:origin: asual/summer

public String getMethod() {
  return RequestFilter.getMethod(getRequest(), super.getMethod());
}

代码示例来源:origin: com.asual.summer/summer-core

public String getMethod() {
  return RequestFilter.getMethod(getRequest(), super.getMethod(), getParameterMap());
}

代码示例来源:origin: com.bbossgroups/bboss-mvc

public String getMethod()
{
  if(!this.isDelegateGetMethod())
  {
    return super.getMethod();
  }
  String method = this.getParameter(RequestMethod_PARAMETERNAME);
  if(method == null || method.equals("") )
    return super.getMethod();
  else
  {
    if(method.equals(RequestMethod_delete))
      return HttpMethod.DELETE.toString();
    else if(method.equals(RequestMethod_put))
      return HttpMethod.PUT.toString();
    else if(method.equals(RequestMethod_head))
      return HttpMethod.HEAD.toString();
    else if(method.equals(RequestMethod_options))
      return HttpMethod.OPTIONS.toString();
    else if(method.equals(RequestMethod_trace))
      return HttpMethod.TRACE.toString();
    else
      return HttpMethod.GET.toString();
      
  }
}
public boolean isDelegateGetMethod() {

代码示例来源:origin: org.apache.juneau/juneau-server

method = super.getMethod();

相关文章

HttpServletRequestWrapper类方法