本文整理了Java中org.raml.model.Action.<init>()
方法的一些代码示例,展示了Action.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.<init>()
方法的具体详情如下:
包路径:org.raml.model.Action
类名称:Action
方法名:<init>
暂无
代码示例来源:origin: com.sap.cloud.yaas.rammler/rammler-core
/**
* Create a placeholder {@link Action} associated with the given {@code Resource}, which is used to procreate an
* AnyActionBuilder for the {@code Resource}.
*/
private static Action asAnyAction(final Resource resource)
{
final Action anyAction = new Action();
anyAction.setResource(resource);
return anyAction;
}
代码示例来源:origin: com.sap.cloud.yaas.service-generator/service-generator-raml
@Override
public Map<ActionType, Action> resolve(final Resource resource)
{
final ImmutableMap.Builder<ActionType, Action> actions = ImmutableMap.builder();
for (final Method m : resource.getMethods())
{
final Action action = new Action();
action.setDescription(m.getDescription());
action.setBody(bodyParamResolver.resolve(m));
action.setQueryParameters(queryParamsResolver.resolve(getParametersFor(m.getParameters(), ParameterType.QUERY)));
action.setHeaders(headerParamsResolver.resolve(getParametersFor(m.getParameters(), ParameterType.HEADER)));
// action.setResource();
action.setResponses(responseResolver.resolve(m));
actions.put(getActionType(m.getMethodType()), action);
}
return actions.build();
}
代码示例来源:origin: org.restlet.jee/org.restlet.ext.apispark
ramlResource.setActions(new LinkedHashMap<ActionType, Action>());
for (Operation operation : resource.getOperations()) {
action = new Action();
action.setDescription(operation.getDescription());
action.setResource(ramlResource);
代码示例来源:origin: org.restlet.gae/org.restlet.ext.platform
ramlResource.setActions(new LinkedHashMap<ActionType, Action>());
for (Operation operation : resource.getOperations()) {
action = new Action();
action.setDescription(operation.getDescription());
action.setResource(ramlResource);
代码示例来源:origin: org.restlet.jee/org.restlet.ext.platform
ramlResource.setActions(new LinkedHashMap<ActionType, Action>());
for (Operation operation : resource.getOperations()) {
action = new Action();
action.setDescription(operation.getDescription());
action.setResource(ramlResource);
代码示例来源:origin: org.restlet.jse/org.restlet.ext.platform
ramlResource.setActions(new LinkedHashMap<ActionType, Action>());
for (Operation operation : resource.getOperations()) {
action = new Action();
action.setDescription(operation.getDescription());
action.setResource(ramlResource);
代码示例来源:origin: org.restlet.osgi/org.restlet.ext.platform
ramlResource.setActions(new LinkedHashMap<ActionType, Action>());
for (Operation operation : resource.getOperations()) {
action = new Action();
action.setDescription(operation.getDescription());
action.setResource(ramlResource);
内容来源于网络,如有侵权,请联系作者删除!