Example usage for javax.xml.ws WebServiceException getMessage

List of usage examples for javax.xml.ws WebServiceException getMessage

Introduction

In this page you can find the example usage for javax.xml.ws WebServiceException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

From source file:com.clustercontrol.infra.util.InfraEndpointWrapper.java

public void deleteDownloadedInfraFile(String fileName)
        throws HinemosUnknown_Exception, InvalidRole_Exception, InvalidUserPass_Exception {
    WebServiceException wse = null;
    for (EndpointSetting<InfraEndpoint> endpointSetting : getInfraEndpoint(endpointUnit)) {
        try {//ww  w. ja  v  a 2  s. com
            InfraEndpoint endpoint = endpointSetting.getEndpoint();
            endpoint.deleteDownloadedInfraFile(fileName);
            return;
        } catch (WebServiceException e) {
            wse = e;
            m_log.warn("downloadInfraFile(), " + e.getMessage());
            endpointUnit.changeEndpoint();
        }
    }
    throw wse;
}

From source file:com.clustercontrol.infra.util.InfraEndpointWrapper.java

public ModuleResult checkInfraModule(String sessionId, boolean verbose)
        throws HinemosUnknown_Exception, InfraManagementNotFound_Exception, InfraModuleNotFound_Exception,
        InvalidRole_Exception, InvalidUserPass_Exception, SessionNotFound_Exception {
    WebServiceException wse = null;
    ModuleResult ret = null;//from w  w w.j a v a 2s  . c  o  m
    for (EndpointSetting<InfraEndpoint> endpointSetting : getInfraEndpoint(endpointUnit)) {
        try {
            InfraEndpoint endpoint = endpointSetting.getEndpoint();
            ret = endpoint.checkInfraModule(sessionId, verbose);
            return ret;
        } catch (WebServiceException e) {
            wse = e;
            m_log.warn("checkInfraModule(), " + e.getMessage());
            endpointUnit.changeEndpoint();
        }
    }
    throw wse;
}

From source file:com.clustercontrol.infra.util.InfraEndpointWrapper.java

public int getFileSizeLimit() throws HinemosUnknown_Exception, HinemosUnknown_Exception, InvalidRole_Exception,
        InvalidUserPass_Exception {

    WebServiceException wse = null;

    for (EndpointSetting<InfraEndpoint> endpointSetting : getInfraEndpoint(endpointUnit)) {
        try {//from   www .j a va  2 s  .c  o  m
            InfraEndpoint endpoint = endpointSetting.getEndpoint();
            return endpoint.getInfraMaxFileSize();

        } catch (WebServiceException e) {
            wse = e;
            m_log.warn("getFileSizeLimit(), " + e.getMessage());
            endpointUnit.changeEndpoint();
        }
    }
    throw wse;
}

From source file:com.clustercontrol.infra.util.InfraEndpointWrapper.java

public InfraManagementInfo getInfraManagement(String managementId)
        throws HinemosUnknown_Exception, InvalidRole_Exception, InvalidUserPass_Exception,
        NotifyNotFound_Exception, InfraManagementNotFound_Exception {
    WebServiceException wse = null;
    for (EndpointSetting<InfraEndpoint> endpointSetting : getInfraEndpoint(endpointUnit)) {
        try {/*from  w w  w.j a  v  a  2 s  . c om*/
            InfraEndpoint endpoint = endpointSetting.getEndpoint();
            InfraManagementInfo info = endpoint.getInfraManagement(managementId);
            return info;
        } catch (WebServiceException e) {
            wse = e;
            m_log.warn("getInfraManagement(), " + e.getMessage());
            endpointUnit.changeEndpoint();
        }
    }
    throw wse;
}

From source file:com.clustercontrol.infra.util.InfraEndpointWrapper.java

public void addInfraManagement(InfraManagementInfo info)
        throws HinemosUnknown_Exception, InvalidRole_Exception, InvalidUserPass_Exception,
        InvalidSetting_Exception, NotifyDuplicate_Exception, InfraManagementDuplicate_Exception {
    WebServiceException wse = null;
    for (EndpointSetting<InfraEndpoint> endpointSetting : getInfraEndpoint(endpointUnit)) {
        try {/*from   ww  w.  ja va 2 s.  c  o m*/
            InfraEndpoint endpoint = endpointSetting.getEndpoint();
            endpoint.addInfraManagement(info);
            return;
        } catch (WebServiceException e) {
            wse = e;
            m_log.warn("addInfraManagement(), " + e.getMessage());
            endpointUnit.changeEndpoint();
        }
    }
    throw wse;
}

From source file:com.clustercontrol.infra.util.InfraEndpointWrapper.java

public boolean deleteSession(String sessionId) throws HinemosUnknown_Exception,
        InfraManagementNotFound_Exception, InvalidRole_Exception, InvalidUserPass_Exception {
    WebServiceException wse = null;
    boolean ret = false;
    for (EndpointSetting<InfraEndpoint> endpointSetting : getInfraEndpoint(endpointUnit)) {
        try {/*from   w  w  w  .  j  a  v  a2 s. c  o m*/
            InfraEndpoint endpoint = endpointSetting.getEndpoint();
            ret = endpoint.deleteSession(sessionId);
            return ret;
        } catch (WebServiceException e) {
            wse = e;
            m_log.warn("createCheckSession(), " + e.getMessage());
            endpointUnit.changeEndpoint();
        }
    }
    throw wse;
}

From source file:com.clustercontrol.infra.util.InfraEndpointWrapper.java

public void modifyInfraFile(InfraFileInfo info, String filePath) throws HinemosUnknown_Exception,
        InfraFileTooLarge_Exception, InvalidRole_Exception, InvalidUserPass_Exception {
    WebServiceException wse = null;
    for (EndpointSetting<InfraEndpoint> endpointSetting : getInfraEndpoint(endpointUnit)) {
        try {/*from   w  w  w  . j  av  a2s  .c om*/
            InfraEndpoint endpoint = endpointSetting.getEndpoint();
            if (filePath != null) {
                endpoint.modifyInfraFile(info, new DataHandler(new FileDataSource(filePath)));
            } else {
                endpoint.modifyInfraFile(info, null);
            }
            return;
        } catch (WebServiceException e) {
            wse = e;
            m_log.warn("modifyInfraFile(), " + e.getMessage());
            endpointUnit.changeEndpoint();
        }
    }
    throw wse;
}

From source file:com.clustercontrol.infra.util.InfraEndpointWrapper.java

public String createSession(String managementId, List<String> moduleIdList, List<AccessInfo> accessList)
        throws HinemosUnknown_Exception, InfraManagementNotFound_Exception, InfraModuleNotFound_Exception,
        InvalidRole_Exception, InvalidUserPass_Exception, FacilityNotFound_Exception, InvalidSetting_Exception {
    WebServiceException wse = null;
    String ret = null;//  ww  w. j  av  a  2s.  com
    for (EndpointSetting<InfraEndpoint> endpointSetting : getInfraEndpoint(endpointUnit)) {
        try {
            InfraEndpoint endpoint = endpointSetting.getEndpoint();
            ret = endpoint.createSession(managementId, moduleIdList, accessList);
            return ret;
        } catch (WebServiceException e) {
            wse = e;
            m_log.warn("createCheckSession(), " + e.getMessage());
            endpointUnit.changeEndpoint();
        }
    }
    throw wse;
}

From source file:com.clustercontrol.infra.util.InfraEndpointWrapper.java

public void deleteInfraFileList(List<String> fileIdList)
        throws HinemosUnknown_Exception, InfraFileNotFound_Exception, InvalidRole_Exception,
        InvalidUserPass_Exception, InfraFileBeingUsed_Exception {
    WebServiceException wse = null;
    for (EndpointSetting<InfraEndpoint> endpointSetting : getInfraEndpoint(endpointUnit)) {
        try {//from w w  w . ja  va  2s .  c om
            InfraEndpoint endpoint = endpointSetting.getEndpoint();
            endpoint.deleteInfraFileList(fileIdList);
            return;
        } catch (WebServiceException e) {
            wse = e;
            m_log.warn("deleteInfraFileList(), " + e.getMessage());
            endpointUnit.changeEndpoint();
        }
    }
    throw wse;
}

From source file:com.clustercontrol.infra.util.InfraEndpointWrapper.java

public List<InfraManagementInfo> getInfraManagementList() throws HinemosUnknown_Exception,
        InvalidRole_Exception, InvalidUserPass_Exception, NotifyNotFound_Exception {
    WebServiceException wse = null;
    for (EndpointSetting<InfraEndpoint> endpointSetting : getInfraEndpoint(endpointUnit)) {
        try {/*from ww w  . j a  va  2s  .  com*/
            InfraEndpoint endpoint = endpointSetting.getEndpoint();
            List<InfraManagementInfo> list = endpoint.getInfraManagementList();
            return list;
        } catch (WebServiceException e) {
            wse = e;
            m_log.warn("getInfraManagementList(), " + e.getMessage());
            endpointUnit.changeEndpoint();
        }
    }
    throw wse;
}