public class PLLClient extends Object
PLLClient
class is used to send RequestSet XML documents
to the URL specified in the send() method. The high level services and
application can use Naming Service to find the service specific URL. This
class provides static methods to register notification handlers.RequestSet
,
Response
,
SendRequestException
,
NotificationHandler
Constructor and Description |
---|
PLLClient() |
Modifier and Type | Method and Description |
---|---|
static void |
addNotificationHandler(String service,
NotificationHandler handler)
Adds a notification handler for a service.
|
static NotificationHandler |
getNotificationHandler(String service)
Gets a notification handler of a service.
|
static void |
parseCookies(Map headers,
HashMap cookieTable)
Parses the cookies from the response header and stores them in
in cookieTable
|
static void |
removeNotificationHandler(String service)
Removes a notification handler of a service.
|
static Vector |
send(URL url,
RequestSet set)
Translates the Java object to an XML RequestSet document and sends the
corresponding XML document to the specified URL.
|
static Vector |
send(URL url,
RequestSet set,
HashMap cookieTable)
Translates the Java object to an XML RequestSet document and sends the
corresponding XML document to the specified URL.
|
static Vector |
send(URL url,
String cookies,
RequestSet set)
Translates the Java object to an XML RequestSet document and sends the
corresponding XML document to the specified URL.
|
public static Vector send(URL url, RequestSet set) throws SendRequestException
url
- The destination URL for the RequestSet XML document.set
- The RequestSet Java object to be translated to an XML
RequestSet document.SendRequestException
- if there is an error in sending the XML document.public static Vector send(URL url, String cookies, RequestSet set) throws SendRequestException
url
- The destination URL for the RequestSet XML document.cookies
- The value for Http Request Header 'Cookie'set
- The RequestSet Java object to be translated to an XML
RequestSet document.SendRequestException
- if there is an error in sending the XML document.public static Vector send(URL url, RequestSet set, HashMap cookieTable) throws SendRequestException
url
- The destination URL for the RequestSet XML document.set
- The RequestSet Java object to be translated to an XML
RequestSet document.cookieTable
- The HashMap that constains cookies to be replayed and stores
cookies retrieved from the response.SendRequestException
- if there is an error in sending the XML document.public static void parseCookies(Map headers, HashMap cookieTable)
headers
- The Map containig headerscookieTable
- The HashMap that constains cookies to be replayed and stores
cookies retrieved from the response.public static void addNotificationHandler(String service, NotificationHandler handler) throws AlreadyRegisteredException
service
- The name of the service such as session, profilehandler
- The handler for notification processingAlreadyRegisteredException
public static void removeNotificationHandler(String service)
service
- The name of the service whose handler needs to be removedpublic static NotificationHandler getNotificationHandler(String service)
service
- The name of the service whose handler needs to be returnedCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.