public class ProfilingOptions extends Object
ProfilingOptions options = new ProfilingOptions().setSessionID("mysessionid")
.setCustomAttributes(myAttributes);
The only compulsory option in this class is setEndNotifier(EndNotifierBase)
Constructor and Description |
---|
ProfilingOptions() |
Modifier and Type | Method and Description |
---|---|
ProfilingOptions |
setCustomAttributes(List<String> customAttributes)
Sets custom attributes (up to 5) that should be passed during the next profiling request
|
ProfilingOptions |
setEndNotifier(com.threatmetrix.TrustDefender.EndNotifierBase notifier)
Set the completion notifier.
|
ProfilingOptions |
setLocation(Location location)
Sets a location for use during the next profiling request.
|
ProfilingOptions |
setSessionID(String sessionID)
Set the session id to be used in the next profiling request
|
public ProfilingOptions setSessionID(String sessionID)
sessionID
- Session ID to use for profiling.public ProfilingOptions setCustomAttributes(List<String> customAttributes)
customAttributes
- Up to 5 custom attributes.public ProfilingOptions setLocation(Location location)
Location
location
- public ProfilingOptions setEndNotifier(com.threatmetrix.TrustDefender.EndNotifierBase notifier)
TrustDefender.doProfileRequest(com.threatmetrix.TrustDefender.EndNotifier)
returns THM_OK, the completion notifier will be fired, ie even if the profile fails.notifier
- - must implement EndNotifier