public class AttributesForRetrieval extends Object
Constructor and Description |
---|
AttributesForRetrieval()
Creates a default specification of attributes for retrieval which is
retrieve all user attributes as UTF-8 text.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getBinaryAttributes()
Gets the names of the attributes to retrieve as binary (Base64
encoded).
|
String[] |
getSpec()
Retrieves the specification of the attributes (UTF-8 text and binary)
for retrieval for an LDAP get entry/search request.
|
void |
parse(com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever params)
Parses an "attributes" and a "binaryAttributes" specification from
the given named JSON-RPC parameters.
|
static String[] |
parseValues(String paramName,
com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever params)
Parses a JSON-RPC 2.0 parameter representing a set of string values.
|
public AttributesForRetrieval()
public Set<String> getBinaryAttributes()
public String[] getSpec()
null
for all.public static String[] parseValues(String paramName, com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever params) throws com.thetransactioncompany.jsonrpc2.JSONRPC2Error
paramName
- The parameter name. Must not be null
.params
- The named parameters to parse. Must not be
null
.com.thetransactioncompany.jsonrpc2.JSONRPC2Error
- If parsing failed (INVALID_PARAMS).public void parse(com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever params) throws com.thetransactioncompany.jsonrpc2.JSONRPC2Error
params
- The named parameters to parse. Must not be
null
.com.thetransactioncompany.jsonrpc2.JSONRPC2Error
- If parsing failed (INVALID_PARAMS).Copyright © 2015 Connect2id. All Rights Reserved.