当前位置: 首页>>代码示例>>Java>>正文


Java SOAPFaultException类代码示例

本文整理汇总了Java中javax.xml.rpc.soap.SOAPFaultException的典型用法代码示例。如果您正苦于以下问题:Java SOAPFaultException类的具体用法?Java SOAPFaultException怎么用?Java SOAPFaultException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SOAPFaultException类属于javax.xml.rpc.soap包,在下文中一共展示了SOAPFaultException类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CheckException

import javax.xml.rpc.soap.SOAPFaultException; //导入依赖的package包/类
private void CheckException(Exception ex) {
	if (ex instanceof JPlagException) {
		JPlagException jex = (JPlagException) ex;

		getJEditorPane().setContentType("text/plain");
		getJEditorPane().setText(jex.getExceptionType() + " at " + new Date() + "\n" + jex.getDescription() + "\n" + jex.getRepair());

		getStatusTextfield().setText(jex.getExceptionType());
	} else if (ex instanceof RemoteException) {
		CheckRemoteException((RemoteException) ex);
	} else if (ex instanceof SOAPFaultException) {
		SOAPFaultException se = (SOAPFaultException) ex;
		getJEditorPane().setContentType("text/plain");
		getJEditorPane().setText(
				"Unexpected SOAPFaultException: " + se.getFaultActor() + "\n" + se.getFaultString() + "\n" + se.getMessage() + "\n"
						+ se.getDetail());
		getStatusTextfield().setText(se.getFaultActor());
	} else {
		getStatusTextfield().setText(ex.getClass().getName() + " : " + ex.getMessage());
		ex.printStackTrace();
	}
}
 
开发者ID:jplag,项目名称:jplag,代码行数:23,代码来源:JplagSwingClient.java

示例2: handleRequest

import javax.xml.rpc.soap.SOAPFaultException; //导入依赖的package包/类
public boolean handleRequest(MessageContext context) {
    MessageSnapshot snapshot = new MessageSnapshot(context);
    try {
        for (int i = 0; i < size(); i++) {
            Handler currentHandler = (Handler) get(i);
            invokedHandlers.addFirst(currentHandler);
            try {
                if (!currentHandler.handleRequest(context)) {
                    return false;
                }
            } catch (SOAPFaultException e) {
                throw e;
            }
        }
    } finally {
        saveChanges(context);
    }

    if (!snapshot.equals(context)) {
        throw new IllegalStateException("The soap message operation or arguments were illegally modified by the HandlerChain");
    }
    return true;
}
 
开发者ID:apache,项目名称:tomee,代码行数:24,代码来源:HandlerChainImpl.java

示例3: getSessionData

import javax.xml.rpc.soap.SOAPFaultException; //导入依赖的package包/类
private ims.domain.SessionData getSessionData()
{
	SessionData sessData = (SessionData)this.getDomainFactory().getDomainSession().getAttribute(SessionConstants.SESSION_DATA);
	
	if (sessData == null) {
		 throw new SOAPFaultException(null, "getSessionData(): sessionData cannot be null", null, null);
	}
	
	return sessData;
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:11,代码来源:WebServicesIntegrationImpl.java

示例4: createSOAPFault

import javax.xml.rpc.soap.SOAPFaultException; //导入依赖的package包/类
private void createSOAPFault(SystemLogLevel logLevel, String faultString)
{
	 createSystemLogEntry(SystemLogType.WEB_SERVICE,logLevel, getSessionData().securityTokenLaunchUsername.get(), "", faultString);
	 throw new SOAPFaultException(null, faultString, null, null);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:6,代码来源:WebServicesIntegrationImpl.java

示例5: getOriginalException

import javax.xml.rpc.soap.SOAPFaultException; //导入依赖的package包/类
/**
 * Return the wrapped JAX-RPC SOAPFaultException.
 */
public final SOAPFaultException getOriginalException() {
	return (SOAPFaultException) getCause();
}
 
开发者ID:deathspeeder,项目名称:class-guard,代码行数:7,代码来源:JaxRpcSoapFaultException.java

示例6: JaxRpcSoapFaultException

import javax.xml.rpc.soap.SOAPFaultException; //导入依赖的package包/类
/**
 * Constructor for JaxRpcSoapFaultException.
 * @param original the original JAX-RPC SOAPFaultException to wrap
 */
public JaxRpcSoapFaultException(SOAPFaultException original) {
	super(original.getMessage(), original);
}
 
开发者ID:deathspeeder,项目名称:class-guard,代码行数:8,代码来源:JaxRpcSoapFaultException.java


注:本文中的javax.xml.rpc.soap.SOAPFaultException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。