本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}