Example usage for java.rmi RemoteException getMessage

List of usage examples for java.rmi RemoteException getMessage

Introduction

In this page you can find the example usage for java.rmi RemoteException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message, including the message from the cause, if any, of this exception.

Usage

From source file:org.wso2.carbon.identity.claim.metadata.mgt.ui.client.ClaimMetadataAdminClient.java

public void updateLocalClaim(LocalClaimDTO localClaim)
        throws RemoteException, ClaimMetadataManagementServiceClaimMetadataException {
    try {/*from  w  w w  .  java  2s.c  om*/
        stub.updateLocalClaim(localClaim);
    } catch (RemoteException e) {
        log.error(e.getMessage(), e);
        throw e;
    } catch (ClaimMetadataManagementServiceClaimMetadataException e) {
        log.error(e.getMessage(), e);
        throw e;
    }
}

From source file:org.wso2.carbon.identity.claim.metadata.mgt.ui.client.ClaimMetadataAdminClient.java

public void removeLocalClaim(String localCLaimURI)
        throws RemoteException, ClaimMetadataManagementServiceClaimMetadataException {
    try {/*from  w  w  w.j  a  v a  2 s  . c  om*/
        stub.removeLocalClaim(localCLaimURI);
    } catch (RemoteException e) {
        log.error(e.getMessage(), e);
        throw e;
    } catch (ClaimMetadataManagementServiceClaimMetadataException e) {
        log.error(e.getMessage(), e);
        throw e;
    }
}

From source file:org.wso2.carbon.identity.claim.metadata.mgt.ui.client.ClaimMetadataAdminClient.java

public ExternalClaimDTO[] getExternalClaims(String externalClaimDialectURI)
        throws RemoteException, ClaimMetadataManagementServiceClaimMetadataException {
    try {/*from w w w  . ja  va2s  .c  o  m*/
        return stub.getExternalClaims(externalClaimDialectURI);
    } catch (RemoteException e) {
        log.error(e.getMessage(), e);
        throw e;
    } catch (ClaimMetadataManagementServiceClaimMetadataException e) {
        log.error(e.getMessage(), e);
        throw e;
    }
}

From source file:org.wso2.carbon.identity.claim.metadata.mgt.ui.client.ClaimMetadataAdminClient.java

public void addExternalClaim(ExternalClaimDTO externalClaim)
        throws RemoteException, ClaimMetadataManagementServiceClaimMetadataException {
    try {//from w ww  . ja  va  2  s  .  c om
        stub.addExternalClaim(externalClaim);
    } catch (RemoteException e) {
        log.error(e.getMessage(), e);
        throw e;
    } catch (ClaimMetadataManagementServiceClaimMetadataException e) {
        log.error(e.getMessage(), e);
        throw e;
    }
}

From source file:org.wso2.carbon.identity.claim.metadata.mgt.ui.client.ClaimMetadataAdminClient.java

public void updateExternalClaim(ExternalClaimDTO externalClaim)
        throws RemoteException, ClaimMetadataManagementServiceClaimMetadataException {
    try {// www . j ava 2  s  .  c  o  m
        stub.updateExternalClaim(externalClaim);
    } catch (RemoteException e) {
        log.error(e.getMessage(), e);
        throw e;
    } catch (ClaimMetadataManagementServiceClaimMetadataException e) {
        log.error(e.getMessage(), e);
        throw e;
    }
}

From source file:org.wso2.carbon.identity.claim.metadata.mgt.ui.client.ClaimMetadataAdminClient.java

public void removeExternalClaim(String externalClaimDialectURI, String externalClaimURI)
        throws RemoteException, ClaimMetadataManagementServiceClaimMetadataException {
    try {//from w  w  w .jav  a  2  s  .  co m
        stub.removeExternalClaim(externalClaimDialectURI, externalClaimURI);
    } catch (RemoteException e) {
        log.error(e.getMessage(), e);
        throw e;
    } catch (ClaimMetadataManagementServiceClaimMetadataException e) {
        log.error(e.getMessage(), e);
        throw e;
    }
}

From source file:org.wso2.carbon.identity.oauth.ui.client.ClaimMetadataAdminClient.java

/**
 * To get claims associated with oidc claim dialect.
 *
 * @param externalClaimDialect oidc claim dialect
 * @return array of claims which are associated with oidc claim dialect
 * @throws RemoteException//from   w  w  w.  j a v a  2s . c om
 * @throws ClaimMetadataManagementServiceClaimMetadataException
 */
public ExternalClaimDTO[] getExternalClaims(String externalClaimDialect)
        throws RemoteException, ClaimMetadataManagementServiceClaimMetadataException {

    try {
        return stub.getExternalClaims(externalClaimDialect);
    } catch (RemoteException e) {
        log.error(e.getMessage(), e);
        throw e;
    } catch (ClaimMetadataManagementServiceClaimMetadataException e) {
        log.error(e.getMessage(), e);
        throw e;
    }
}

From source file:org.wso2.carbon.identity.oauth.ui.endpoints.authz.OAuth2AuthzEndpoint.java

private OAuth2ClientValidationResponseDTO validateClient(HttpServletRequest req, String clientId,
        String callbackURL) throws OAuthSystemException {

    String backendServerURL = CarbonUIUtil
            .getServerURL(OAuthUIServiceComponentHolder.getInstance().getServerConfigurationService());
    ConfigurationContext configContext = OAuthUIServiceComponentHolder.getInstance()
            .getConfigurationContextService().getServerConfigContext();

    try {// w ww.  ja v a2s .c om
        OAuth2ServiceClient oauth2ServiceClient = new OAuth2ServiceClient(backendServerURL, configContext);
        return oauth2ServiceClient.validateClient(clientId, callbackURL);
    } catch (RemoteException e) {
        log.error("Error when invoking the OAuth2Service for client validation.");
        throw new OAuthSystemException(e.getMessage(), e);
    }
}

From source file:org.wso2.carbon.identity.sso.saml.ui.client.SAMLSSOConfigServiceClient.java

public String[] getSigningAlgorithmUris() throws IdentityRuntimeException {
    String[] signingAlgorithmUris;
    try {//from  w  ww. j  ava 2 s . com
        signingAlgorithmUris = stub.getSigningAlgorithmUris();
    } catch (RemoteException e) {
        throw new IdentityRuntimeException(e.getMessage(), e);
    }
    return signingAlgorithmUris;
}

From source file:org.wso2.carbon.identity.sso.saml.ui.client.SAMLSSOConfigServiceClient.java

public String getSigningAlgorithmUriByConfig() throws IdentityRuntimeException {
    String signingAlgo;//  w  w w .ja  va2  s. c  o m
    try {
        signingAlgo = stub.getSigningAlgorithmUriByConfig();
    } catch (RemoteException e) {
        throw new IdentityRuntimeException(e.getMessage(), e);
    }
    return signingAlgo;
}