public void clear() { m_impl.clear(); }
/** * Clear the RDN, removing all the AttributeTypeAndValues. */ public void clear() { atav = null; atavs = null; atavType = null; atavTypes.clear(); nbAtavs = 0; normName = ""; upName = ""; start = -1; length = 0; }
@Override public void reset() { super.reset(); wrappedWriter = null; status = SC_OK; headers.clear(); // cleanup temp file if any cleanUp(); }
/** * Removes all occurrences of the given header in this stub response (using a case insensitive search) * and sets its single value. * @param name header name * @param value header value */ @SuppressWarnings("unchecked") void setHeaderCaseInsensitive(final String name, final String value) { final MultiMap result = new MultiValueMap(); for (final Object o: this.headers.keySet()) { final String key = (String) o; //fucking non-generics MultiMap if (!name.equalsIgnoreCase(key)) { //copy all other headers to the result multimap for(final String s: (Collection<String>)this.headers.get(o)) { result.put(o, s); } } } this.headers.clear(); this.headers.putAll(result); this.addHeader(name, value); }
/** * Removes all occurrences of the given header in this stub response (using a case insensitive search) * and sets its single value. * @param name header name * @param value header value */ @SuppressWarnings("unchecked") void setHeaderCaseInsensitive(final String name, final String value) { final MultiMap result = new MultiValueMap(); for (final Object o: this.headers.keySet()) { final String key = (String) o; //fucking non-generics MultiMap if (!name.equalsIgnoreCase(key)) { //copy all other headers to the result multimap for(final String s: (Collection<String>)this.headers.get(o)) { result.put(o, s); } } } this.headers.clear(); this.headers.putAll(result); this.addHeader(name, value); }