private void addMatrixOrQueryToBuilder( UriBuilder ub, String paramName, ParameterType pt, Object... pValue) { if (pt == ParameterType.MATRIX) { ub.matrixParam(paramName, pValue); } else { ub.queryParam(paramName, pValue); } }
@Override public WebTarget matrixParam(String name, Object... values) { checkNullValues(name, values); UriBuilder thebuilder = getUriBuilder(); if (values == null || values.length == 1 && values[0] == null) { thebuilder.replaceMatrixParam(name, (Object[]) null); } else { thebuilder.matrixParam(name, values); } return newWebTarget(thebuilder); }