本文整理了Java中javax.xml.ws.Action.output()
方法的一些代码示例,展示了Action.output()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.output()
方法的具体详情如下:
包路径:javax.xml.ws.Action
类名称:Action
方法名:output
暂无
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
@Override
public void addOperationOutputExtension(TypedXmlWriter output, JavaMethod method) {
if (!enabled)
return;
Action a = method.getSEIMethod().getAnnotation(Action.class);
if (a != null && !a.output().equals("")) {
addAttribute(output, a.output());
}
}
代码示例来源:origin: com.sun.xml.ws/rt
@Override
public void addOperationOutputExtension(TypedXmlWriter output, JavaMethod method) {
if (!enabled)
return;
Action a = method.getSEIMethod().getAnnotation(Action.class);
if (a != null && !a.output().equals("")) {
addAttribute(output, a.output());
}
}
代码示例来源:origin: org.apache.axis2/axis2-metadata
private String getOutputAction() {
String outputAction = null;
Action action = getAnnoAction();
if (action != null) {
outputAction = action.output();
}
if (log.isDebugEnabled()) {
log.debug("getOutputAction: " + outputAction);
}
return outputAction;
}
代码示例来源:origin: javaee/metro-jax-ws
@Override
public void addOperationOutputExtension(TypedXmlWriter output, JavaMethod method) {
if (!enabled)
return;
Action a = method.getSEIMethod().getAnnotation(Action.class);
if (a != null && !a.output().equals("")) {
addAttribute(output, a.output());
}
}
代码示例来源:origin: apache/axis2-java
private String getOutputAction() {
String outputAction = null;
Action action = getAnnoAction();
if (action != null) {
outputAction = action.output();
}
if (log.isDebugEnabled()) {
log.debug("getOutputAction: " + outputAction);
}
return outputAction;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
if (output != null && !StringUtils.isEmpty(action.output())) {
output.addExtensionAttribute(JAXWSAConstants.WSAW_ACTION_QNAME, action.output());
output.addExtensionAttribute(JAXWSAConstants.WSAM_ACTION_QNAME, action.output());
} else if (output != null) {
output.addExtensionAttribute(JAXWSAConstants.WSAM_ACTION_QNAME, computeAction(operation,
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
private void setWsaActions(MetadataReader metadataReader) {
Action action = (metadataReader != null)? metadataReader.getAnnotation(Action.class, seiMethod):seiMethod.getAnnotation(Action.class);
if(action != null) {
inputAction = action.input();
outputAction = action.output();
}
//@Action(input) =="", get it from @WebMethod(action)
WebMethod webMethod = (metadataReader != null)? metadataReader.getAnnotation(WebMethod.class, seiMethod):seiMethod.getAnnotation(WebMethod.class);
soapAction = "";
if (webMethod != null )
soapAction = webMethod.action();
if(!soapAction.equals("")) {
//non-empty soapAction
if(inputAction.equals(""))
// set input action to non-empty soapAction
inputAction = soapAction;
else if(!inputAction.equals(soapAction)){
//both are explicitly set via annotations, make sure @Action == @WebMethod.action
//http://java.net/jira/browse/JAX_WS-1108
//throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
}
}
}
代码示例来源:origin: com.sun.xml.ws/rt
private void setWsaActions(MetadataReader metadataReader) {
Action action = (metadataReader != null)? metadataReader.getAnnotation(Action.class, seiMethod):seiMethod.getAnnotation(Action.class);
if(action != null) {
inputAction = action.input();
outputAction = action.output();
}
//@Action(input) =="", get it from @WebMethod(action)
WebMethod webMethod = (metadataReader != null)? metadataReader.getAnnotation(WebMethod.class, seiMethod):seiMethod.getAnnotation(WebMethod.class);
soapAction = "";
if (webMethod != null )
soapAction = webMethod.action();
if(!soapAction.equals("")) {
//non-empty soapAction
if(inputAction.equals(""))
// set input action to non-empty soapAction
inputAction = soapAction;
else if(!inputAction.equals(soapAction)){
//both are explicitly set via annotations, make sure @Action == @WebMethod.action
//http://java.net/jira/browse/JAX_WS-1108
//throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
}
}
}
代码示例来源:origin: javaee/metro-jax-ws
private void setWsaActions(MetadataReader metadataReader) {
Action action = (metadataReader != null)? metadataReader.getAnnotation(Action.class, seiMethod):seiMethod.getAnnotation(Action.class);
if(action != null) {
inputAction = action.input();
outputAction = action.output();
}
//@Action(input) =="", get it from @WebMethod(action)
WebMethod webMethod = (metadataReader != null)? metadataReader.getAnnotation(WebMethod.class, seiMethod):seiMethod.getAnnotation(WebMethod.class);
soapAction = "";
if (webMethod != null )
soapAction = webMethod.action();
if(!soapAction.equals("")) {
//non-empty soapAction
if(inputAction.equals(""))
// set input action to non-empty soapAction
inputAction = soapAction;
else if(!inputAction.equals(soapAction)){
//both are explicitly set via annotations, make sure @Action == @WebMethod.action
//http://java.net/jira/browse/JAX_WS-1108
//throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
}
}
}
代码示例来源:origin: org.apache.axis2/axis2-metadata
actionAnnot.setOutput(action.output());
mdc.setActionAnnot(actionAnnot);
代码示例来源:origin: apache/axis2-java
actionAnnot.setOutput(action.output());
mdc.setActionAnnot(actionAnnot);
代码示例来源:origin: apache/cxf
if (output != null && !StringUtils.isEmpty(action.output())) {
output.addExtensionAttribute(JAXWSAConstants.WSAW_ACTION_QNAME, action.output());
output.addExtensionAttribute(JAXWSAConstants.WSAM_ACTION_QNAME, action.output());
} else if (output != null) {
output.addExtensionAttribute(JAXWSAConstants.WSAM_ACTION_QNAME, computeAction(operation,
内容来源于网络,如有侵权,请联系作者删除!