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


Java JavaMethod.getOperationName方法代码示例

本文整理汇总了Java中com.sun.xml.internal.ws.api.model.JavaMethod.getOperationName方法的典型用法代码示例。如果您正苦于以下问题:Java JavaMethod.getOperationName方法的具体用法?Java JavaMethod.getOperationName怎么用?Java JavaMethod.getOperationName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.xml.internal.ws.api.model.JavaMethod的用法示例。


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

示例1: getDefaultAction

import com.sun.xml.internal.ws.api.model.JavaMethod; //导入方法依赖的package包/类
protected static final String getDefaultAction(JavaMethod method) {
    String tns = method.getOwner().getTargetNamespace();
    String delim = "/";
    // TODO: is this the correct way to find the separator ?
    try {
        URI uri = new URI(tns);
        if(uri.getScheme().equalsIgnoreCase("urn"))
            delim = ":";
    } catch (URISyntaxException e) {
        LOGGER.warning("TargetNamespace of WebService is not a valid URI");
    }
    if (tns.endsWith(delim))
        tns = tns.substring(0, tns.length() - 1);
    //this assumes that fromjava case there won't be input name.
    // if there is input name in future, then here name=inputName
    //else use operation name as follows.
    String name = (method.getMEP().isOneWay())?method.getOperationName():method.getOperationName()+"Request";

    return new StringBuilder(tns).append(delim).append(
            method.getOwner().getPortTypeName().getLocalPart()).append(
            delim).append(name).toString();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:23,代码来源:W3CAddressingWSDLGeneratorExtension.java

示例2: addBindingOperationExtension

import com.sun.xml.internal.ws.api.model.JavaMethod; //导入方法依赖的package包/类
@Override
public void addBindingOperationExtension(final TypedXmlWriter operation, final JavaMethod method) {
    LOGGER.entering();
    final QName operationName = (method == null) ? null : new QName(method.getOwner().getTargetNamespace(), method.getOperationName());
    selectAndProcessBindingSubject(operation, WSDLBoundOperation.class, ScopeType.OPERATION, operationName);
    LOGGER.exiting();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:PolicyWSDLGeneratorExtension.java

示例3: addBindingOperationInputExtension

import com.sun.xml.internal.ws.api.model.JavaMethod; //导入方法依赖的package包/类
@Override
public void addBindingOperationInputExtension(final TypedXmlWriter input, final JavaMethod method) {
    LOGGER.entering();
    final QName operationName = new QName(method.getOwner().getTargetNamespace(), method.getOperationName());
    selectAndProcessBindingSubject(input, WSDLBoundOperation.class, ScopeType.INPUT_MESSAGE, operationName);
    LOGGER.exiting();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:PolicyWSDLGeneratorExtension.java

示例4: addBindingOperationOutputExtension

import com.sun.xml.internal.ws.api.model.JavaMethod; //导入方法依赖的package包/类
@Override
public void addBindingOperationOutputExtension(final TypedXmlWriter output, final JavaMethod method) {
    LOGGER.entering();
    final QName operationName = new QName(method.getOwner().getTargetNamespace(), method.getOperationName());
    selectAndProcessBindingSubject(output, WSDLBoundOperation.class, ScopeType.OUTPUT_MESSAGE, operationName);
    LOGGER.exiting();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:PolicyWSDLGeneratorExtension.java

示例5: getDefaultInputAction

import com.sun.xml.internal.ws.api.model.JavaMethod; //导入方法依赖的package包/类
protected static final String getDefaultInputAction(JavaMethod method) {
    String tns = method.getOwner().getTargetNamespace();
    String delim = getDelimiter(tns);
    if (tns.endsWith(delim))
        tns = tns.substring(0, tns.length() - 1);
    //this assumes that fromjava case there won't be input name.
    // if there is input name in future, then here name=inputName
    //else use operation name as follows.
    String name = (method.getMEP().isOneWay()) ?
            method.getOperationName() : method.getOperationName() + "Request";

    return new StringBuilder(tns).append(delim).append(
            method.getOwner().getPortTypeName().getLocalPart()).append(
            delim).append(name).toString();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:W3CAddressingMetadataWSDLGeneratorExtension.java

示例6: getDefaultOutputAction

import com.sun.xml.internal.ws.api.model.JavaMethod; //导入方法依赖的package包/类
protected static final String getDefaultOutputAction(JavaMethod method) {
    String tns = method.getOwner().getTargetNamespace();
    String delim = getDelimiter(tns);
    if (tns.endsWith(delim))
        tns = tns.substring(0, tns.length() - 1);
    //this assumes that fromjava case there won't be output name.
    // if there is input name in future, then here name=outputName
    //else use operation name as follows.
    String name = method.getOperationName() + "Response";

    return new StringBuilder(tns).append(delim).append(
            method.getOwner().getPortTypeName().getLocalPart()).append(
            delim).append(name).toString();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:W3CAddressingMetadataWSDLGeneratorExtension.java


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