public synchronized Map<String, Object[]> getParameterMap() { if (parameterMap == null) { // Two conditions: file upload ("multipart/form-data") or not if (getContentType() != null && getContentType().startsWith("multipart/form-data")) { // Special handling for multipart/form-data // Decode the multipart data parameterMap = Multipart.getParameterMapMultipart( pipelineContext, request, ServletExternalContext.DEFAULT_FORM_CHARSET_DEFAULT); } else if (portletRequest instanceof ResourceRequest) { // We encoded query parameters directly into the resource id in this case final String queryString = NetUtils.getQueryString(((ResourceRequest) portletRequest).getResourceID()); if (queryString != null) parameterMap = Collections.unmodifiableMap( StringConversions.stringArrayMapToObjectArrayMap( NetUtils.decodeQueryString(queryString, false))); else parameterMap = Collections.emptyMap(); } else { // Not a resource request, so just use native request parameters parameterMap = new HashMap<String, Object[]>(portletRequest.getParameterMap()); parameterMap.remove(WSRPURLRewriter.PathParameterName()); parameterMap = Collections.unmodifiableMap(parameterMap); } } return parameterMap; }
public Set<String> getControlsStructuralChanges() { return controlsStructuralChanges != null ? controlsStructuralChanges : Collections.<String>emptySet(); }
public List<XFormsError.ServerError> getServerErrors() { return serverErrors != null ? serverErrors : Collections.<XFormsError.ServerError>emptyList(); }
/** Return the list of loads to send to the client, null if none. */ public List<Load> getLoadsToRun() { if (loadsToRun != null) return loadsToRun; else return Collections.emptyList(); }
public List<Script> getScriptsToRun() { if (scriptsToRun != null) return scriptsToRun; else return Collections.emptyList(); }
public List<DelayedEvent> getDelayedEvents() { if (delayedEvents != null) return delayedEvents; else return Collections.emptyList(); }
/** Return the list of messages to send to the client, null if none. */ public List<Message> getMessagesToRun() { if (messagesToRun != null) return messagesToRun; else return Collections.emptyList(); }
public Set<String> getPendingUploads() { if (pendingUploads == null) return Collections.emptySet(); else return pendingUploads; }
public Map<String, String[]> getRedirectParameters() { return redirectParameters != null ? redirectParameters : Collections.<String, String[]>emptyMap(); }