本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.setRequest()
方法的一些代码示例,展示了HttpServletRequestWrapper.setRequest()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.setRequest()
方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:setRequest
[英]Sets the request object for the wrapper.
[中]设置包装器的请求对象。
代码示例来源:origin: cloudfoundry/uaa
@Override
public void setRequest(ServletRequest request) {
super.setRequest(request);
}
代码示例来源:origin: Atmosphere/atmosphere
@Override
public void setRequest(ServletRequest request) {
super.setRequest(request);
if (HttpServletRequest.class.isAssignableFrom(request.getClass())) {
b.request = HttpServletRequest.class.cast(request);
}
}
代码示例来源:origin: org.gatein.pc/pc-portlet
public final void setRequest(ServletRequest servletRequest)
{
// That's a trick
dreq.setRequest(servletRequest);
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void setRequest(ServletRequest request) {
super.setRequest(request);
m_pathInfoCalculated = false;
}
代码示例来源:origin: org.lastaflute/lastaflute
@Override
public void setRequest(ServletRequest request) {
super.setRequest(request);
wrapped = (HttpServletRequest) request; // synchronize it with new request
}
代码示例来源:origin: com.github.wuic/wuic-servlet
/**
* {@inheritDoc}
*/
@Override
public void setRequest(final ServletRequest request) {
// Synchronized access
synchronized (mutex) {
super.setRequest(request);
}
}
代码示例来源:origin: securityfilter/securityfilter
/**
* Set the request that is to be wrapped.
*
* @param request wrap this request
*/
public void setRequest(ServletRequest request) {
super.setRequest(request);
this.currentRequest = (HttpServletRequest) request;
}
代码示例来源:origin: org.opennms.container/org.opennms.container.bridge
@Override
public void setRequest(ServletRequest request) {
super.setRequest(request);
m_pathInfoCalculated = false;
}
代码示例来源:origin: lastaflute/lastaflute
@Override
public void setRequest(ServletRequest request) {
super.setRequest(request);
wrapped = (HttpServletRequest) request; // synchronize it with new request
}
代码示例来源:origin: org.onehippo.ecm.hst.components/hst-core
public void setRequest(HttpServletRequest servletRequest) {
super.setRequest(servletRequest);
}
代码示例来源:origin: paoding-code/paoding-rose
inv.setRequest(portalRequest);
} else {
requestWrapper.setRequest(portalRequest);
代码示例来源:origin: Jasig/uPortal
@Override
public void setRequest(ServletRequest request) {
this.checkState();
super.setRequest(request);
}
代码示例来源:origin: org.jasig.portal/uPortal-rendering
@Override
public void setRequest(ServletRequest request) {
this.checkState();
super.setRequest(request);
}
代码示例来源:origin: javaee/grizzly
/**
* Set the request that we are wrapping.
*
* @param request The new wrapped request
*/
void setRequest(HttpServletRequest request) {
super.setRequest(request);
// Initialize the attributes for this request
requestDispatcherPath =
request.getAttribute(Globals.DISPATCHER_REQUEST_PATH_ATTR);
// Initialize the path elements for this request
contextPath = request.getContextPath();
pathInfo = request.getPathInfo();
queryString = request.getQueryString();
requestURI = request.getRequestURI();
servletPath = request.getServletPath();
}
代码示例来源:origin: com.sun.grizzly/grizzly-http-servlet
/**
* Set the request that we are wrapping.
*
* @param request The new wrapped request
*/
private void setRequest( HttpServletRequest request ) {
super.setRequest( request );
// Initialize the attributes for this request
requestDispatcherPath = request.getAttribute( Globals.DISPATCHER_REQUEST_PATH_ATTR );
// Initialize the path elements for this request
contextPath = request.getContextPath();
requestURI = request.getRequestURI();
servletPath = request.getServletPath();
pathInfo = request.getPathInfo();
queryString = request.getQueryString();
}
代码示例来源:origin: org.apache.wink/wink-server
@Override
public void setRequest(ServletRequest request) {
getCorrectRequest().setRequest(request);
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Set the request that we are wrapping.
*
* @param request The new wrapped request
*/
void setRequest(HttpServletRequest request) {
super.setRequest(request);
// Initialize the attributes for this request
dispatcherType = (DispatcherType)request.getAttribute(Globals.DISPATCHER_TYPE_ATTR);
requestDispatcherPath =
request.getAttribute(Globals.DISPATCHER_REQUEST_PATH_ATTR);
// Initialize the path elements for this request
contextPath = request.getContextPath();
pathInfo = request.getPathInfo();
queryString = request.getQueryString();
requestURI = request.getRequestURI();
servletPath = request.getServletPath();
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Set the request that we are wrapping.
*
* @param request The new wrapped request
*/
void setRequest(HttpServletRequest request) {
super.setRequest(request);
// Initialize the attributes for this request
dispatcherType = (DispatcherType)request.getAttribute(Globals.DISPATCHER_TYPE_ATTR);
requestDispatcherPath =
request.getAttribute(Globals.DISPATCHER_REQUEST_PATH_ATTR);
// Initialize the path elements for this request
contextPath = request.getContextPath();
pathInfo = request.getPathInfo();
queryString = request.getQueryString();
requestURI = request.getRequestURI();
servletPath = request.getServletPath();
}
代码示例来源:origin: org.seleniumhq.selenium/jetty-rc-repacked
public void pushWrapper(HttpServletRequestWrapper wrapper)
{
wrapper.setRequest(getRequest());
setRequest(wrapper);
}
代码示例来源:origin: org.seleniumhq.selenium.server/selenium-server-coreless
public void pushWrapper(HttpServletRequestWrapper wrapper)
{
wrapper.setRequest(getRequest());
setRequest(wrapper);
}
内容来源于网络,如有侵权,请联系作者删除!