/** * Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. */ public void pop() { if (currentChild == null) { throw new RuntimeException("Attempt to pop without a push"); } currentChild.recycle(); currentChild = currentChild.parent; // don't remove the top. } // -------------------- Data access --------------------
/** * Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. */ public void pop() { if (currentChild == null) { throw new RuntimeException("Attempt to pop without a push"); } currentChild.recycle(); currentChild = currentChild.parent; // don't remove the top. } // -------------------- Data access --------------------
/** * Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. */ public void pop() { if (currentChild == null) { throw new RuntimeException("Attempt to pop without a push"); } currentChild.recycle(); currentChild = currentChild.parent; // don't remove the top. } // -------------------- Data access --------------------
/** * Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. */ public void pop() { if (currentChild == null) { throw new RuntimeException("Attempt to pop without a push"); } currentChild.recycle(); currentChild = currentChild.parent; // don't remove the top. } // -------------------- Data access --------------------
/** * Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. */ public void pop() { if (currentChild == null) { throw new RuntimeException("Attempt to pop without a push"); } currentChild.recycle(); currentChild = currentChild.parent; // don't remove the top. } // -------------------- Data access --------------------
/** * Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. */ public void pop() { if (currentChild == null) { throw new RuntimeException("Attempt to pop without a push"); } currentChild.recycle(); currentChild = currentChild.parent; // don't remove the top. } // -------------------- Data access --------------------
/** * Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. */ public void pop() { if (currentChild == null) { throw new RuntimeException("Attempt to pop without a push"); } currentChild.recycle(); currentChild = currentChild.parent; // don't remove the top. } // -------------------- Data access --------------------
/** * Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. */ public void pop() { if (currentChild == null) { throw new RuntimeException("Attempt to pop without a push"); } currentChild.recycle(); currentChild = currentChild.parent; // don't remove the top. } // -------------------- Data access --------------------
/** * Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. */ public void pop() { if (currentChild == null) { throw new RuntimeException("Attempt to pop without a push"); } currentChild.recycle(); currentChild = currentChild.parent; // don't remove the top. } // -------------------- Data access --------------------
/** * Discard the last child. This happens when we return from a sub-request and the parameters are locally modified. */ public void pop() { if (currentChild == null) { throw new RuntimeException("Attempt to pop without a push"); } currentChild.recycle(); currentChild = currentChild.parent; // don't remove the top. } // -------------------- Data access --------------------
/** * Replays request's payload by setting new payload {@link Buffer}. * If request parameters have been parsed based on prev. request's POST * payload - the parameters will be recycled and ready to be parsed again. * * @param buffer payload * * @throws IllegalStateException, if previous request payload has not been read off. */ public void replayPayload(final Buffer buffer) { inputBuffer.replayPayload(buffer); usingReader = false; usingInputStream = false; if (Method.POST.equals(getMethod()) && requestParametersParsed) { requestParametersParsed = false; parameterMap.setLocked(false); parameterMap.clear(); parameters.recycle(); } }
/** * Replays request's payload by setting new payload {@link Buffer}. * If request parameters have been parsed based on prev. request's POST * payload - the parameters will be recycled and ready to be parsed again. * * @param buffer payload * * @throws IllegalStateException, if previous request payload has not been read off. */ public void replayPayload(final Buffer buffer) { inputBuffer.replayPayload(buffer); usingReader = false; usingInputStream = false; if (Method.POST.equals(getMethod()) && requestParametersParsed) { requestParametersParsed = false; parameterMap.setLocked(false); parameterMap.clear(); parameters.recycle(); } }
/** * Replays request's payload by setting new payload {@link Buffer}. * If request parameters have been parsed based on prev. request's POST * payload - the parameters will be recycled and ready to be parsed again. * * @param buffer payload * * @throws IllegalStateException, if previous request payload has not been read off. */ public void replayPayload(final Buffer buffer) { inputBuffer.replayPayload(buffer); usingReader = false; usingInputStream = false; if (Method.POST.equals(getMethod()) && requestParametersParsed) { requestParametersParsed = false; parameterMap.setLocked(false); parameterMap.clear(); parameters.recycle(); } }
/** * Replays request's payload by setting new payload {@link Buffer}. * If request parameters have been parsed based on prev. request's POST * payload - the parameters will be recycled and ready to be parsed again. * * @param buffer payload * * @throws IllegalStateException, if previous request payload has not been read off. */ public void replayPayload(final Buffer buffer) { inputBuffer.replayPayload(buffer); usingReader = false; usingInputStream = false; if (Method.POST.equals(getMethod()) && requestParametersParsed) { requestParametersParsed = false; parameterMap.setLocked(false); parameterMap.clear(); parameters.recycle(); } }
/** * Replays request's payload by setting new payload {@link Buffer}. * If request parameters have been parsed based on prev. request's POST * payload - the parameters will be recycled and ready to be parsed again. * * @param buffer payload * * @throws IllegalStateException, if previous request payload has not been read off. */ public void replayPayload(final Buffer buffer) { inputBuffer.replayPayload(buffer); usingReader = false; usingInputStream = false; if (Method.POST.equals(getMethod()) && requestParametersParsed) { requestParametersParsed = false; parameterMap.setLocked(false); parameterMap.clear(); parameters.recycle(); } }
/** * Replays request's payload by setting new payload {@link Buffer}. * If request parameters have been parsed based on prev. request's POST * payload - the parameters will be recycled and ready to be parsed again. * * @param buffer payload * * @throws IllegalStateException, if previous request payload has not been read off. */ public void replayPayload(final Buffer buffer) { inputBuffer.replayPayload(buffer); usingReader = false; usingInputStream = false; if (Method.POST.equals(getMethod()) && requestParametersParsed) { requestParametersParsed = false; parameterMap.setLocked(false); parameterMap.clear(); parameters.recycle(); } }
/** * Replays request's payload by setting new payload {@link Buffer}. * If request parameters have been parsed based on prev. request's POST * payload - the parameters will be recycled and ready to be parsed again. * * @param buffer payload * * @throws IllegalStateException, if previous request payload has not been read off. */ public void replayPayload(final Buffer buffer) { inputBuffer.replayPayload(buffer); usingReader = false; usingInputStream = false; if (Method.POST.equals(getMethod()) && requestParametersParsed) { requestParametersParsed = false; parameterMap.setLocked(false); parameterMap.clear(); parameters.recycle(); } }
/** * Replays request's payload by setting new payload {@link Buffer}. * If request parameters have been parsed based on prev. request's POST * payload - the parameters will be recycled and ready to be parsed again. * * @param buffer payload * * @throws IllegalStateException, if previous request payload has not been read off. */ public void replayPayload(final Buffer buffer) { inputBuffer.replayPayload(buffer); usingReader = false; usingInputStream = false; if (Method.POST.equals(getMethod()) && requestParametersParsed) { requestParametersParsed = false; parameterMap.setLocked(false); parameterMap.clear(); parameters.recycle(); } }
/** * Replays request's payload by setting new payload {@link Buffer}. * If request parameters have been parsed based on prev. request's POST * payload - the parameters will be recycled and ready to be parsed again. * * @param buffer payload * * @throws IllegalStateException, if previous request payload has not been read off. */ public void replayPayload(final Buffer buffer) { inputBuffer.replayPayload(buffer); usingReader = false; usingInputStream = false; if (Method.POST.equals(getMethod()) && requestParametersParsed) { requestParametersParsed = false; parameterMap.setLocked(false); parameterMap.clear(); parameters.recycle(); } }
/** * Clear the collection of parameters associated with this Request * and reset the query string encoding charset. */ @Override public void clearParameters() { coyoteRequest.getParameters().recycle(); coyoteRequest.getParameters().setQueryStringEncoding( Charsets.lookupCharset(getConnector().getURIEncoding())); }