Class JAXRPCUtil


  • public class JAXRPCUtil
    extends JAXRPCHelper
    The class JAXRPCUtil provides functions to get JAXRPC stubs to a valid Identity Server. The function getRemoteStub(String serviceName) returns a JAXRPC stub to the service. It is expected that the service caches the stub and re-uses it until the server has failed. Upon server failure, the service needs to call the function serverFailed (String serviceName), and the next call to getRemoteStub(String serviceName) will check for next valid server and will return a stub that is currently active or throws java.rmi.RemoteException if no servers are available.
    • Constructor Detail

      • JAXRPCUtil

        public JAXRPCUtil()
    • Method Detail

      • getRemoteStub

        public static Object getRemoteStub​(String serviceName)
                                    throws RemoteException
        Returns a valid JAXRPC end point for the given service name. If no valid servers are found, it throws java.rmi.RemoteException.
        Throws:
        RemoteException
      • serverFailed

        public static void serverFailed​(String serviceName)
        Sets the service to be failed.
      • getServiceEndPoint

        protected static Object getServiceEndPoint​(String iurl)
      • getAppSSOTokenCookie

        public static String getAppSSOTokenCookie()
        Returns the application (server/agent) SSO token as an HTTP cookie string (<cookieName>=<tokenId>) suitable for the cookies argument of SOAPClient.send(...). This lets the server authenticate the caller of the notification-URL registration methods from the request cookie (GHSA-w858-46wv-v45w) without changing the JAXRPC method contract.
        Returns:
        the SSO cookie string, or null if the app token or cookie name is unavailable (in which case no cookie is sent).