public abstract class MediationServerParameters extends Object
slotId
.
The adapter author is required to subclass this class for his adapter's
server side parameters. This gives them two methods of defining parameters:
They can either override the load(Map)
method, or they may define
String
fields with @Parameter
annotations. This takes the
form:
@Parameter("application_id", required = true) public String applicationId;The
required
parameter to the annotation is optional and defaults
to true. If any required fields are missing, the adapter will not be invoked.Modifier and Type | Class and Description |
---|---|
static class |
MediationServerParameters.MappingException
Exception thrown when there is an issue mapping fields, usually due to required fields
missing or type mismatches.
|
Constructor and Description |
---|
MediationServerParameters() |
public void load(Map<String,String> parameters) throws MediationServerParameters.MappingException
Map<String, String>
to fields in the derived class. This
method may be overridden to perform more complicated, custom mappings.MediationServerParameters.MappingException
- any required fields are missing