Java 类org.apache.catalina.util.ParameterMap 实例源码

项目:tomcat7    文件:ApplicationServletRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();

    String[] parameterNames = wrapper.findInitParameters();

    for (String parameterName : parameterNames) {
        result.put(parameterName, wrapper.findInitParameter(parameterName));
    }

    result.setLocked(true);
    return result;
}
项目:tomcat7    文件:ApplicationHttpRequest.java   
/**
 * Parses the parameters of this request.
 *
 * If parameters are present in both the query string and the request
 * content, they are merged.
 */
void parseParameters() {

    if (parsedParams) {
        return;
    }

    parameters = new ParameterMap<String, String[]>();
    parameters.putAll(getRequest().getParameterMap());
    mergeParameters();
    ((ParameterMap<String,String[]>) parameters).setLocked(true);
    parsedParams = true;
}
项目:tomcat7    文件:ApplicationFilterRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();
    result.putAll(filterDef.getParameterMap());
    result.setLocked(true);
    return result;
}
项目:apache-tomcat-7.0.73-with-comment    文件:ApplicationServletRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();

    String[] parameterNames = wrapper.findInitParameters();

    for (String parameterName : parameterNames) {
        result.put(parameterName, wrapper.findInitParameter(parameterName));
    }

    result.setLocked(true);
    return result;
}
项目:apache-tomcat-7.0.73-with-comment    文件:ApplicationHttpRequest.java   
/**
 * Parses the parameters of this request.
 *
 * If parameters are present in both the query string and the request
 * content, they are merged.
 */
void parseParameters() {

    if (parsedParams) {
        return;
    }

    parameters = new ParameterMap<String, String[]>();
    parameters.putAll(getRequest().getParameterMap());
    mergeParameters();
    ((ParameterMap<String,String[]>) parameters).setLocked(true);
    parsedParams = true;
}
项目:apache-tomcat-7.0.73-with-comment    文件:ApplicationFilterRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();
    result.putAll(filterDef.getParameterMap());
    result.setLocked(true);
    return result;
}
项目:lazycat    文件:ApplicationServletRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String, String> result = new ParameterMap<String, String>();

    String[] parameterNames = wrapper.findInitParameters();

    for (String parameterName : parameterNames) {
        result.put(parameterName, wrapper.findInitParameter(parameterName));
    }

    result.setLocked(true);
    return result;
}
项目:lazycat    文件:ApplicationHttpRequest.java   
/**
 * Parses the parameters of this request.
 *
 * If parameters are present in both the query string and the request
 * content, they are merged.
 */
void parseParameters() {

    if (parsedParams) {
        return;
    }

    parameters = new ParameterMap<String, String[]>();
    parameters.putAll(getRequest().getParameterMap());
    mergeParameters();
    ((ParameterMap<String, String[]>) parameters).setLocked(true);
    parsedParams = true;
}
项目:lazycat    文件:ApplicationFilterRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String, String> result = new ParameterMap<String, String>();
    result.putAll(filterDef.getParameterMap());
    result.setLocked(true);
    return result;
}
项目:class-guard    文件:ApplicationServletRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();

    String[] parameterNames = wrapper.findInitParameters();

    for (String parameterName : parameterNames) {
        result.put(parameterName, wrapper.findInitParameter(parameterName));
    }

    result.setLocked(true);
    return result;
}
项目:class-guard    文件:ApplicationFilterRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();
    result.putAll(filterDef.getParameterMap());
    result.setLocked(true);
    return result;
}
项目:apache-tomcat-7.0.57    文件:ApplicationServletRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();

    String[] parameterNames = wrapper.findInitParameters();

    for (String parameterName : parameterNames) {
        result.put(parameterName, wrapper.findInitParameter(parameterName));
    }

    result.setLocked(true);
    return result;
}
项目:apache-tomcat-7.0.57    文件:ApplicationFilterRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();
    result.putAll(filterDef.getParameterMap());
    result.setLocked(true);
    return result;
}
项目:apache-tomcat-7.0.57    文件:ApplicationServletRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();

    String[] parameterNames = wrapper.findInitParameters();

    for (String parameterName : parameterNames) {
        result.put(parameterName, wrapper.findInitParameter(parameterName));
    }

    result.setLocked(true);
    return result;
}
项目:apache-tomcat-7.0.57    文件:ApplicationFilterRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();
    result.putAll(filterDef.getParameterMap());
    result.setLocked(true);
    return result;
}
项目:WBSAirback    文件:ApplicationServletRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();

    String[] parameterNames = wrapper.findInitParameters();

    for (String parameterName : parameterNames) {
        result.put(parameterName, wrapper.findInitParameter(parameterName));
    }

    result.setLocked(true);
    return result;
}
项目:WBSAirback    文件:ApplicationFilterRegistration.java   
@Override
public Map<String, String> getInitParameters() {
    ParameterMap<String,String> result = new ParameterMap<String,String>();
    result.putAll(filterDef.getParameterMap());
    result.setLocked(true);
    return result;
}
项目:lams    文件:Request.java   
/**
 * Release all object references, and initialize instance variables, in
 * preparation for reuse of this object.
 */
public void recycle() {

    context = null;
    wrapper = null;

    dispatcherType = null;
    requestDispatcherPath = null;

    comet = false;
    if (event != null) {
        event.clear();
        event = null;
    }

    authType = null;
    inputBuffer.recycle();
    usingInputStream = false;
    usingReader = false;
    userPrincipal = null;
    subject = null;
    sessionParsed = false;
    parametersParsed = false;
    cookiesParsed = false;
    locales.clear();
    localesParsed = false;
    secure = false;
    remoteAddr = null;
    remoteHost = null;
    remotePort = -1;
    localPort = -1;
    localAddr = null;
    localName = null;

    attributes.clear();
    notes.clear();
    cookies = null;

    if (session != null) {
        session.endAccess();
    }
    session = null;
    requestedSessionCookie = false;
    requestedSessionId = null;
    requestedSessionURL = false;

    if (Globals.IS_SECURITY_ENABLED || Connector.RECYCLE_FACADES) {
        parameterMap = new ParameterMap();
    } else {
        parameterMap.setLocked(false);
        parameterMap.clear();
    }

    mappingData.recycle();

    if (Globals.IS_SECURITY_ENABLED || Connector.RECYCLE_FACADES) {
        if (facade != null) {
            facade.clear();
            facade = null;
        }
        if (inputStream != null) {
            inputStream.clear();
            inputStream = null;
        }
        if (reader != null) {
            reader.clear();
            reader = null;
        }
    }

}