public class ScriptableHandler extends AbstractScriptableHeapObject implements Handler
globals- the Map of global variables which persist across successive invocations of the script
exchange- the HTTP exchange
http- an OpenIG HTTP client which may be used for performing outbound HTTP requests
ldap- an OpenIG LDAP client which may be used for performing LDAP requests such as LDAP authentication
logger- the OpenIG logger.
NOTE: at the moment only Groovy is supported.
|Modifier and Type||Class and Description|
Creates and initializes a scriptable handler in a heap environment.
|Modifier and Type||Method and Description|
Called to request the handler respond to the request.
public void handle(Exchange exchange) throws HandlerException, IOException
A handler that doesn't hand-off an exchange to another handler downstream is responsible for creating the response in the exchange object.
Important note: If an existing response exists in the exchange object
and the handler intends to replace it with its own, it must first check to see if the
existing response has an entity, and if it does, must call its
close method in
order to signal that the processing of the response from a remote server is complete.
Copyright © 2014 ForgeRock AS. All rights reserved.