Package com.sun.identity.jaxrpc
Class JAXRPCUtil
- java.lang.Object
-
- com.sun.identity.shared.jaxrpc.JAXRPCHelper
-
- com.sun.identity.jaxrpc.JAXRPCUtil
-
public class JAXRPCUtil extends JAXRPCHelper
The classJAXRPCUtilprovides functions to get JAXRPC stubs to a valid Identity Server. The functiongetRemoteStub(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 functionserverFailed (String serviceName), and the next call togetRemoteStub(String serviceName)will check for next valid server and will return a stub that is currently active or throwsjava.rmi.RemoteExceptionif no servers are available.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.shared.jaxrpc.JAXRPCHelper
debug, serverFailed, SMS_SERVICE, validRemoteURL
-
-
Constructor Summary
Constructors Constructor Description JAXRPCUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectgetRemoteStub(String serviceName)Returns a valid JAXRPC end point for the given service name.protected static ObjectgetServiceEndPoint(String iurl)protected static ObjectgetValidStub(String serviceName)static voidserverFailed(String serviceName)Sets the service to be failed.-
Methods inherited from class com.sun.identity.shared.jaxrpc.JAXRPCHelper
getValidServerURL, getValidURL, isServerValid
-
-
-
-
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 throwsjava.rmi.RemoteException.- Throws:
RemoteException
-
serverFailed
public static void serverFailed(String serviceName)
Sets the service to be failed.
-
getValidStub
protected static Object getValidStub(String serviceName) throws RemoteException
- Throws:
RemoteException
-
-