本文整理了Java中org.apache.tuscany.sca.interfacedef.Interface.getAttributes()
方法的一些代码示例,展示了Interface.getAttributes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Interface.getAttributes()
方法的具体详情如下:
包路径:org.apache.tuscany.sca.interfacedef.Interface
类名称:Interface
方法名:getAttributes
[英]Get a map of attributes associated with the interface
[中]获取与接口关联的属性的映射
代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-rest-runtime
/**
* Find the operation from the component service contract
* @param componentService
* @param http_method
* @return
*/
private static List<Operation> filterOperationsByHttpMethod(InterfaceContract interfaceContract, String http_method) {
List<Operation> operations = null;
if (http_method.equalsIgnoreCase("get")) {
operations = (List<Operation>)interfaceContract.getInterface().getAttributes().get(GET.class);
} else if (http_method.equalsIgnoreCase("put")) {
operations = (List<Operation>)interfaceContract.getInterface().getAttributes().get(PUT.class);
} else if (http_method.equalsIgnoreCase("post")) {
operations = (List<Operation>)interfaceContract.getInterface().getAttributes().get(POST.class);
} else if (http_method.equalsIgnoreCase("delete")) {
operations = (List<Operation>)interfaceContract.getInterface().getAttributes().get(DELETE.class);
}
return operations;
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-java-jaxrs
jaxrs = true;
operation.getAttributes().put(type, Boolean.TRUE);
Map<Object, Object> attrs = operation.getInterface().getAttributes();
List<Operation> operations = (List<Operation>)attrs.get(type);
if (operations == null) {
代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-java
List<Operation> actualOps = (List<Operation>) operation.getInterface().getAttributes().get("ASYNC-SERVER-OPERATIONS");
Operation matchingOp = null;
for( Operation op: actualOps ) {
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
List<Operation> actualOps = (List<Operation>) operation.getInterface().getAttributes().get("ASYNC-SERVER-OPERATIONS");
Operation matchingOp = null;
for( Operation op: actualOps ) {
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
asyncOperations = (List<Operation>) service.getInterfaceContract().getInterface().getAttributes().get("JAXWS-ASYNC-OPERATIONS");
}catch(Exception e) {
代码示例来源:origin: org.apache.tuscany.sca/tuscany-builder
asyncOperations = (List<Operation>) service.getInterfaceContract().getInterface().getAttributes().get("JAXWS-ASYNC-OPERATIONS");
}catch(Exception e) {
内容来源于网络,如有侵权,请联系作者删除!