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


Java WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY属性代码示例

本文整理汇总了Java中org.apache.axis2.wsdl.WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY属性的典型用法代码示例。如果您正苦于以下问题:Java WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY属性的具体用法?Java WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY怎么用?Java WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.apache.axis2.wsdl.WSDLConstants的用法示例。


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

示例1: createOperationContext

public static OperationContext createOperationContext(int mepURI, AxisOperation axisOp,
                                                      ServiceContext serviceContext)
        throws AxisFault {
    if ((WSDLConstants.MEP_CONSTANT_IN_OUT == mepURI) ||
            (WSDLConstants.MEP_CONSTANT_IN_ONLY == mepURI)
            || (WSDLConstants.MEP_CONSTANT_IN_OPTIONAL_OUT == mepURI)
            || (WSDLConstants.MEP_CONSTANT_ROBUST_IN_ONLY == mepURI) ||
            (WSDLConstants.MEP_CONSTANT_OUT_ONLY == mepURI)
            || (WSDLConstants.MEP_CONSTANT_OUT_IN == mepURI) ||
            (WSDLConstants.MEP_CONSTANT_OUT_OPTIONAL_IN == mepURI)
            || (WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY == mepURI)) {
        return serviceContext.createOperationContext(axisOp);
    } else {
        throw new AxisFault(Messages.getMessage("unSupportedMEP", "ID is " + mepURI));
    }
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:16,代码来源:OperationContextFactory.java

示例2: hasResponse

private boolean hasResponse(AxisOperation op) {
    switch (op.getAxisSpecificMEPConstant()) {
        case WSDLConstants.MEP_CONSTANT_IN_OUT:
            return true;
        case WSDLConstants.MEP_CONSTANT_OUT_ONLY:
            return true;
        case WSDLConstants.MEP_CONSTANT_OUT_OPTIONAL_IN:
            return true;
        case WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY:
            return true;
        default:
            return false;
    }
}
 
开发者ID:wso2,项目名称:carbon-business-process,代码行数:14,代码来源:AxisHumanTaskMessageReceiver.java

示例3: hasResponse

/**
 * Returns the web service operation style(in only/in-out).
 * // TODO: Move to a separate class
 *
 * @param op Interested Axis Operation
 * @return true if the operation is in-out, false otherwise.
 */
public static boolean hasResponse(final AxisOperation op) {
    switch (op.getAxisSpecificMEPConstant()) {
        case WSDLConstants.MEP_CONSTANT_IN_OUT:
            return true;
        case WSDLConstants.MEP_CONSTANT_OUT_ONLY:
            return true;
        case WSDLConstants.MEP_CONSTANT_OUT_OPTIONAL_IN:
            return true;
        case WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY:
            return true;
        default:
            return false;
    }
}
 
开发者ID:wso2,项目名称:carbon-business-process,代码行数:21,代码来源:BPELMessageContextFactory.java

示例4: getAxisSpecificMEPConstant

/**
 * Maps the String URI of the Message exchange pattern to an integer. Further, in the first
 * lookup, it will cache the looked up value so that the subsequent method calls are extremely
 * efficient.
 *
 * @return an MEP constant from WSDLConstants
 */
public int getAxisSpecificMEPConstant() {
    if (this.mep != WSDLConstants.MEP_CONSTANT_INVALID) {
        return this.mep;
    }

    int temp = WSDLConstants.MEP_CONSTANT_INVALID;

    if (WSDL2Constants.MEP_URI_IN_OUT.equals(mepURI)) {
        temp = WSDLConstants.MEP_CONSTANT_IN_OUT;
    } else if (WSDL2Constants.MEP_URI_IN_ONLY.equals(mepURI)) {
        temp = WSDLConstants.MEP_CONSTANT_IN_ONLY;
    } else if (WSDL2Constants.MEP_URI_IN_OPTIONAL_OUT.equals(mepURI)) {
        temp = WSDLConstants.MEP_CONSTANT_IN_OPTIONAL_OUT;
    } else if (WSDL2Constants.MEP_URI_OUT_IN.equals(mepURI)) {
        temp = WSDLConstants.MEP_CONSTANT_OUT_IN;
    } else if (WSDL2Constants.MEP_URI_OUT_ONLY.equals(mepURI)) {
        temp = WSDLConstants.MEP_CONSTANT_OUT_ONLY;
    } else if (WSDL2Constants.MEP_URI_OUT_OPTIONAL_IN.equals(mepURI)) {
        temp = WSDLConstants.MEP_CONSTANT_OUT_OPTIONAL_IN;
    } else if (WSDL2Constants.MEP_URI_ROBUST_IN_ONLY.equals(mepURI)) {
        temp = WSDLConstants.MEP_CONSTANT_ROBUST_IN_ONLY;
    } else if (WSDL2Constants.MEP_URI_ROBUST_OUT_ONLY.equals(mepURI)) {
        temp = WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY;
    }

    if (temp == WSDLConstants.MEP_CONSTANT_INVALID) {
        throw new AxisError(Messages.getMessage("mepmappingerror"));
    }

    this.mep = temp;

    return this.mep;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:40,代码来源:AxisOperation.java

示例5: getAxisOperation

public static AxisOperation getAxisOperation(int mepURI) throws AxisFault {
    AxisOperation abOpdesc;

    switch (mepURI) {
        case WSDLConstants.MEP_CONSTANT_IN_ONLY : {
            abOpdesc = new InOnlyAxisOperation();
            abOpdesc.setMessageExchangePattern(WSDL2Constants.MEP_URI_IN_ONLY);
            break;
        }
        case WSDLConstants.MEP_CONSTANT_OUT_ONLY : {
            abOpdesc = new OutOnlyAxisOperation();
            abOpdesc.setMessageExchangePattern(WSDL2Constants.MEP_URI_OUT_ONLY);
            break;
        }
        case WSDLConstants.MEP_CONSTANT_IN_OUT : {
            abOpdesc = new InOutAxisOperation();
            abOpdesc.setMessageExchangePattern(WSDL2Constants.MEP_URI_IN_OUT);
            break;
        }
        case WSDLConstants.MEP_CONSTANT_IN_OPTIONAL_OUT : {
            abOpdesc = new InOutAxisOperation();
            abOpdesc.setMessageExchangePattern(WSDL2Constants.MEP_URI_IN_OPTIONAL_OUT);
            break;
        }
        case WSDLConstants.MEP_CONSTANT_ROBUST_IN_ONLY : {
            abOpdesc = new InOutAxisOperation();
            abOpdesc.setMessageExchangePattern(WSDL2Constants.MEP_URI_ROBUST_IN_ONLY);
            break;
        }
        case WSDLConstants.MEP_CONSTANT_OUT_IN : {
            abOpdesc = new OutInAxisOperation();
            abOpdesc.setMessageExchangePattern(WSDL2Constants.MEP_URI_OUT_IN);
            break;
        }
        case WSDLConstants.MEP_CONSTANT_OUT_OPTIONAL_IN : {
            abOpdesc = new OutInAxisOperation();
            abOpdesc.setMessageExchangePattern(WSDL2Constants.MEP_URI_OUT_OPTIONAL_IN);
            break;
        }
        case WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY : {
            abOpdesc = new RobustOutOnlyAxisOperation();
            abOpdesc.setMessageExchangePattern(WSDL2Constants.MEP_URI_ROBUST_OUT_ONLY);
            break;
        }
        default : {
            throw new AxisFault(Messages.getMessage("unSupportedMEP", "ID is " + mepURI));
        }
    }
    return abOpdesc;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:50,代码来源:AxisOperationFactory.java

示例6: getAxisSpecifMEPConstant

/**
 * Maps the String URI of the Message exchange pattern to a integer.
 * Further, in the first lookup, it will cache the looked
 * up value so that the subsequent method calls are extremely efficient.
 */
@SuppressWarnings("deprecation")
public static int getAxisSpecifMEPConstant(String messageExchangePattern) {


    int mepConstant = WSDLConstants.MEP_CONSTANT_INVALID;

    if (WSDL2Constants.MEP_URI_IN_OUT.equals(messageExchangePattern) ||
        WSDLConstants.WSDL20_2006Constants.MEP_URI_IN_OUT.equals(messageExchangePattern) ||
        WSDLConstants.WSDL20_2004_Constants.MEP_URI_IN_OUT.equals(messageExchangePattern)) {
        mepConstant = WSDLConstants.MEP_CONSTANT_IN_OUT;
    } else if (
            WSDL2Constants.MEP_URI_IN_ONLY.equals(messageExchangePattern) ||
            WSDLConstants.WSDL20_2006Constants.MEP_URI_IN_ONLY.equals(messageExchangePattern) ||
            WSDLConstants.WSDL20_2004_Constants.MEP_URI_IN_ONLY
                    .equals(messageExchangePattern)) {
        mepConstant = WSDLConstants.MEP_CONSTANT_IN_ONLY;
    } else if (WSDL2Constants.MEP_URI_IN_OPTIONAL_OUT
            .equals(messageExchangePattern) ||
                                            WSDLConstants.WSDL20_2006Constants.MEP_URI_IN_OPTIONAL_OUT
                                                    .equals(messageExchangePattern) ||
                                                                                    WSDLConstants.WSDL20_2004_Constants.MEP_URI_IN_OPTIONAL_OUT
                                                                                            .equals(messageExchangePattern)) {
        mepConstant = WSDLConstants.MEP_CONSTANT_IN_OPTIONAL_OUT;
    } else if (WSDL2Constants.MEP_URI_OUT_IN.equals(messageExchangePattern) ||
               WSDLConstants.WSDL20_2006Constants.MEP_URI_OUT_IN.equals(messageExchangePattern) ||
               WSDLConstants.WSDL20_2004_Constants.MEP_URI_OUT_IN
                       .equals(messageExchangePattern)) {
        mepConstant = WSDLConstants.MEP_CONSTANT_OUT_IN;
    } else if (WSDL2Constants.MEP_URI_OUT_ONLY.equals(messageExchangePattern) ||
               WSDLConstants.WSDL20_2006Constants.MEP_URI_OUT_ONLY
                       .equals(messageExchangePattern) ||
                                                       WSDLConstants.WSDL20_2004_Constants
                                                               .MEP_URI_OUT_ONLY.equals(messageExchangePattern)) {
        mepConstant = WSDLConstants.MEP_CONSTANT_OUT_ONLY;
    } else if (WSDL2Constants.MEP_URI_OUT_OPTIONAL_IN.equals(messageExchangePattern) ||
               WSDLConstants.WSDL20_2006Constants.MEP_URI_OUT_OPTIONAL_IN
                       .equals(messageExchangePattern) ||
                                                       WSDLConstants.WSDL20_2004_Constants.MEP_URI_OUT_OPTIONAL_IN
                                                               .equals(messageExchangePattern)) {
        mepConstant = WSDLConstants.MEP_CONSTANT_OUT_OPTIONAL_IN;
    } else if (WSDL2Constants.MEP_URI_ROBUST_IN_ONLY.equals(messageExchangePattern) ||
               WSDLConstants.WSDL20_2006Constants.MEP_URI_ROBUST_IN_ONLY
                       .equals(messageExchangePattern) ||
                                                       WSDLConstants.WSDL20_2004_Constants.MEP_URI_ROBUST_IN_ONLY
                                                               .equals(messageExchangePattern)) {
        mepConstant = WSDLConstants.MEP_CONSTANT_ROBUST_IN_ONLY;
    } else if (WSDL2Constants.MEP_URI_ROBUST_OUT_ONLY.equals(messageExchangePattern) ||
               WSDLConstants.WSDL20_2006Constants.MEP_URI_ROBUST_OUT_ONLY
                       .equals(messageExchangePattern) ||
                                                       WSDLConstants.WSDL20_2004_Constants.MEP_URI_ROBUST_OUT_ONLY
                                                               .equals(messageExchangePattern)) {
        mepConstant = WSDLConstants.MEP_CONSTANT_ROBUST_OUT_ONLY;
    }

    if (mepConstant == WSDLConstants.MEP_CONSTANT_INVALID) {
        throw new AxisError(Messages.getMessage("mepmappingerror"));
    }


    return mepConstant;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:66,代码来源:Utils.java


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