public class RewriteWebContextImpl extends AbstractWebContextWrapper implements RewriteWebContext
Modifier and Type | Field and Description |
---|---|
static int |
SERVER_PORT_HTTP |
static int |
SERVER_PORT_HTTPS |
static String |
SERVER_SCHEME_HTTP |
static String |
SERVER_SCHEME_HTTPS |
REQUEST_ATTRIBUTE_FROM_WEBCONTEXT
Constructor and Description |
---|
RewriteWebContextImpl(WebContext wrappedContext,
RewriteRule[] rules)
包装一个
RequestContext 对象。 |
Modifier and Type | Method and Description |
---|---|
void |
prepare()
开始一个请求。
|
void |
setPath(String path)
设置路径
|
exist, existFromWrapperContext, get, getFromWrapperContext, getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, getWrappedWebContext, init, isRequestFinished, putSubWebContext, setObject, setRequest, setResponse, setServletContext
clear, clearSubContext, contain, containNodeMap, createSubContext, existNodeMap, findNodeMap, getInSubContext, getItemMap, getParent, getSubContext, getSubContextMap, getTotalContext, getTotalItemMap, put, putContext, putSubContext, remove, removeSubContext, renameKey, renameKeyNodeMap, setParent
get, put, putAll, remove, setItemMap, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, init, isRequestFinished, setObject, setRequest, setResponse, setServletContext
clearSubContext, createSubContext, getInSubContext, getItemMap, getParent, getSubContext, getSubContextMap, getTotalItemMap, put, putSubContext, remove, removeSubContext, setParent
public static final String SERVER_SCHEME_HTTP
public static final String SERVER_SCHEME_HTTPS
public static final int SERVER_PORT_HTTP
public static final int SERVER_PORT_HTTPS
public RewriteWebContextImpl(WebContext wrappedContext, RewriteRule[] rules)
RequestContext
对象。wrappedContext
- 被包装的RequestContext
rewriteConfig
- rewrite的配置文件信息public void prepare()
public void setPath(String path)
RewriteWebContext
setPath
in interface RewriteWebContext
Copyright © 2006–2018 TinyGroup. All rights reserved.