org.apache.catalina.util.ParameterMap Java Examples
The following examples show how to use
org.apache.catalina.util.ParameterMap.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ApplicationServletRegistration.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public Map<String, String> getInitParameters() { ParameterMap<String,String> result = new ParameterMap<>(); String[] parameterNames = wrapper.findInitParameters(); for (String parameterName : parameterNames) { result.put(parameterName, wrapper.findInitParameter(parameterName)); } result.setLocked(true); return result; }
Example #2
Source File: ApplicationHttpRequest.java From Tomcat8-Source-Read with MIT License | 5 votes |
/** * 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<>(); parameters.putAll(getRequest().getParameterMap()); mergeParameters(); ((ParameterMap<String,String[]>) parameters).setLocked(true); parsedParams = true; }
Example #3
Source File: ApplicationFilterRegistration.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public Map<String, String> getInitParameters() { ParameterMap<String,String> result = new ParameterMap<>(); result.putAll(filterDef.getParameterMap()); result.setLocked(true); return result; }
Example #4
Source File: ApplicationServletRegistration.java From Tomcat7.0.67 with Apache License 2.0 | 5 votes |
@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; }
Example #5
Source File: ApplicationFilterRegistration.java From Tomcat7.0.67 with Apache License 2.0 | 5 votes |
@Override public Map<String, String> getInitParameters() { ParameterMap<String,String> result = new ParameterMap<String,String>(); result.putAll(filterDef.getParameterMap()); result.setLocked(true); return result; }
Example #6
Source File: ApplicationServletRegistration.java From tomcatsrc with Apache License 2.0 | 5 votes |
@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; }
Example #7
Source File: ApplicationHttpRequest.java From tomcatsrc with Apache License 2.0 | 5 votes |
/** * 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; }
Example #8
Source File: ApplicationFilterRegistration.java From tomcatsrc with Apache License 2.0 | 5 votes |
@Override public Map<String, String> getInitParameters() { ParameterMap<String,String> result = new ParameterMap<String,String>(); result.putAll(filterDef.getParameterMap()); result.setLocked(true); return result; }
Example #9
Source File: Request.java From Tomcat8-Source-Read with MIT License | 4 votes |
/** * Release all object references, and initialize instance variables, in * preparation for reuse of this object. */ public void recycle() { internalDispatcherType = null; requestDispatcherPath = null; authType = null; inputBuffer.recycle(); usingInputStream = false; usingReader = false; userPrincipal = null; subject = null; parametersParsed = false; if (parts != null) { for (Part part: parts) { try { part.delete(); } catch (IOException ignored) { // ApplicationPart.delete() never throws an IOEx } } parts = null; } partsParseException = null; locales.clear(); localesParsed = false; secure = false; remoteAddr = null; remoteHost = null; remotePort = -1; localPort = -1; localAddr = null; localName = null; attributes.clear(); sslAttributesParsed = false; notes.clear(); recycleSessionInfo(); recycleCookieInfo(false); if (Globals.IS_SECURITY_ENABLED || Connector.RECYCLE_FACADES) { parameterMap = new ParameterMap<>(); } else { parameterMap.setLocked(false); parameterMap.clear(); } mappingData.recycle(); applicationMapping.recycle(); applicationRequest = null; 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; } } asyncSupported = null; if (asyncContext!=null) { asyncContext.recycle(); } asyncContext = null; }
Example #10
Source File: Request.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
/** * Release all object references, and initialize instance variables, in * preparation for reuse of this object. */ public void recycle() { context = null; wrapper = null; internalDispatcherType = 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; if (parts != null) { for (Part part: parts) { try { part.delete(); } catch (IOException ignored) { // ApplicationPart.delete() never throws an IOEx } } parts = null; } partsParseException = null; cookiesParsed = false; locales.clear(); localesParsed = false; secure = false; remoteAddr = null; remoteHost = null; remotePort = -1; localPort = -1; localAddr = null; localName = null; attributes.clear(); sslAttributesParsed = false; notes.clear(); cookies = null; recycleSessionInfo(); if (Globals.IS_SECURITY_ENABLED || Connector.RECYCLE_FACADES) { parameterMap = new ParameterMap<String, String[]>(); } 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; } } asyncSupported = null; if (asyncContext!=null) { asyncContext.recycle(); } asyncContext = null; pathParameters.clear(); }
Example #11
Source File: Request.java From tomcatsrc with Apache License 2.0 | 4 votes |
/** * Release all object references, and initialize instance variables, in * preparation for reuse of this object. */ public void recycle() { context = null; wrapper = null; internalDispatcherType = 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; if (parts != null) { for (Part part: parts) { try { part.delete(); } catch (IOException ignored) { // ApplicationPart.delete() never throws an IOEx } } parts = null; } partsParseException = null; cookiesParsed = false; locales.clear(); localesParsed = false; secure = false; remoteAddr = null; remoteHost = null; remotePort = -1; localPort = -1; localAddr = null; localName = null; attributes.clear(); sslAttributesParsed = false; notes.clear(); cookies = null; recycleSessionInfo(); if (Globals.IS_SECURITY_ENABLED || Connector.RECYCLE_FACADES) { parameterMap = new ParameterMap<String, String[]>(); } 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; } } asyncSupported = null; if (asyncContext!=null) { asyncContext.recycle(); } asyncContext = null; pathParameters.clear(); }