src/main/java/org/wymiwyg/commons/util/URI.java
private void setQueryString(String p_queryString)
		throws MalformedURIException {
		if (p_queryString == null) {
			m_queryString = null;
		} else if (!isGenericURI()) {
			throw new MalformedURIException("Query string can only be set for a generic URI!");
		} else if (getPath() == null) {
			throw new MalformedURIException("Query string cannot be set when path is null!");
		} else if (!isURIString(p_queryString)) {
			throw new MalformedURIException("Query string contains invalid character!");
		} else {
			m_queryString = p_queryString;
		}
	}
private void setQueryString(String p_queryString)
		throws MalformedURIException {
		if (p_queryString == null) {
			m_queryString = null;
		} else if (!isGenericURI()) {
			throw new MalformedURIException("Query string can only be set for a generic URI!");
		} else if (getPath() == null) {
			throw new MalformedURIException("Query string cannot be set when path is null!");
		} else if (!isURIString(p_queryString)) {
			throw new MalformedURIException("Query string contains invalid character!");
		} else {
			m_queryString = p_queryString;
		}
	}
private void setQueryString ( String p_queryString ) throws MalformedURIException { if ( p_queryString == null ) { m_queryString = null ; } else if ( ! isGenericURI ( ) ) { throw new MalformedURIException ( "Query string can only be set for a generic URI!" ) ; } else if ( getPath ( ) == null ) { throw new MalformedURIException ( "Query string cannot be set when path is null!" ) ; } else if ( ! isURIString ( p_queryString ) ) { throw new MalformedURIException ( "Query string contains invalid character!" ) ; } else { m_queryString = p_queryString ; } }
Set the query string for this URI. A non-null value is valid only
if this is an URI conforming to the generic URI syntax and
the path value is not null.

@param p_queryString the query string for this URI

@exception MalformedURIException if p_queryString is not null and this
URI does not conform to the generic
URI syntax or if the path is null
Set the query string for this URI . A non - null value is valid only if this is an URI conforming to the generic URI syntax and the path value is not null .