public UnknownContentTypeException(final String contentType) { super(0005/* errorCode */, SPARQL_DYNAMIC_ERROR_0005, new NV[] { new NV("Content-Type", contentType) }); }
/** * Return the first value for the named MIME type parameter. * * @param name * The parameter name (case sensitive). * @param def * The default value (optional). * * @return The value for that parameter and the caller's default value * otherwise. */ public String getParam(final String name, final String def) { if (name == null) throw new IllegalArgumentException(); for (NV nv : params) { if (name.equals(nv.getName())) { return nv.getValue(); } } return def; }
return nv.getValue();
return nv.getValue();
public SolutionSetDoesNotExistException(final String solutionSet) { super(0004/* errorCode */, SPARQL_DYNAMIC_ERROR_0004, new NV[] { new NV("name", solutionSet) }); }
public SolutionSetExistsException(final String solutionSet) { super(0003/* errorCode */, SPARQL_DYNAMIC_ERROR_0003, new NV[] { new NV("name", solutionSet) }); }
public SolutionSetExistsException(final String solutionSet) { super(0003/* errorCode */, SPARQL_DYNAMIC_ERROR_0003, new NV[] { new NV("name", solutionSet) }); }
public SolutionSetDoesNotExistException(final String solutionSet) { super(0004/* errorCode */, SPARQL_DYNAMIC_ERROR_0004, new NV[] { new NV("name", solutionSet) }); }
public UnknownContentTypeException(final String contentType) { super(0005/* errorCode */, SPARQL_DYNAMIC_ERROR_0005, new NV[] { new NV("Content-Type", contentType) }); }
public GraphExistsException(final URI graphUri) { super(0001/* errorCode */, SPARQL_DYNAMIC_ERROR_0001, new NV[] { new NV("uri", graphUri.stringValue()) }); }
public GraphExistsException(final URI graphUri) { super(0001/* errorCode */, SPARQL_DYNAMIC_ERROR_0001, new NV[] { new NV("uri", graphUri.stringValue()) }); }
public GraphEmptyException(final URI graphUri) { super(0002/* errorCode */, SPARQL_DYNAMIC_ERROR_0002, new NV[] { new NV("uri", graphUri.stringValue()) }); }