本文整理汇总了Java中org.springframework.extensions.webscripts.Status.STATUS_ACCEPTED属性的典型用法代码示例。如果您正苦于以下问题:Java Status.STATUS_ACCEPTED属性的具体用法?Java Status.STATUS_ACCEPTED怎么用?Java Status.STATUS_ACCEPTED使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.springframework.extensions.webscripts.Status
的用法示例。
在下文中一共展示了Status.STATUS_ACCEPTED属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create
@WebApiDescription(title = "Create rendition", successStatus = Status.STATUS_ACCEPTED)
@Override
public List<Rendition> create(String nodeId, List<Rendition> entity, Parameters parameters)
{
// Temporary - pending future improvements to thumbnail service to minimise chance of
// missing/failed thumbnails (when requested/generated 'concurrently')
if (entity.size() > 1)
{
throw new InvalidArgumentException("Please specify one rendition entity id only");
}
for (Rendition rendition : entity)
{
renditions.createRendition(nodeId, rendition, parameters);
}
return null;
}
示例2: create
@WebApiDescription(title = "Execute action", successStatus = Status.STATUS_ACCEPTED)
@Override
public List<Action> create(List<Action> entity, Parameters parameters)
{
if (entity == null || entity.size() != 1)
{
throw new InvalidArgumentException("Please specify one action request only.");
}
List<Action> result = new ArrayList<>(1);
result.add(actions.executeAction(entity.get(0), parameters));
return result;
}
示例3: readAll
@Override
@WebApiDescription(title = "Gets all the Sheep", successStatus = Status.STATUS_ACCEPTED)
@WebApiParameters({
@WebApiParam(name = "siteId", title = "Site id", description="What ever."),
@WebApiParam(name = "who", title = "Who", kind=ResourceParameter.KIND.HTTP_HEADER),
@WebApiParam(name = "body", title = "aintnobody", kind=ResourceParameter.KIND.HTTP_BODY_OBJECT),
@WebApiParam(name = "requiredParam", title = "",required=true, kind=ResourceParameter.KIND.QUERY_STRING)})
public CollectionWithPagingInfo<Sheep> readAll(Parameters params)
{
return CollectionWithPagingInfo.asPagedCollection(new Sheep("paged"));
}
示例4: email
@Operation("email")
@WebApiDescription(title = "Email shared link", successStatus = Status.STATUS_ACCEPTED)
public void email(String sharedId, QuickShareLinkEmailRequest emailRequest, Parameters parameters, WithResponse response)
{
quickShareLinks.emailSharedLink(sharedId, emailRequest, parameters);
}
示例5: growTheLawn
@Operation("grow")
@WebApiDescription(title = "Grow the grass",successStatus = Status.STATUS_ACCEPTED)
@WebApiParam(name = "Grass", title = "The grass.",required=true, kind = ResourceParameter.KIND.HTTP_BODY_OBJECT)
public String growTheLawn(String id, Grass grass, Parameters parameters, WithResponse withResponse) {
return "Growing well";
}
示例6: readAll
@Override
@WebApiDescription(title = "Gets all the Sheep", successStatus = Status.STATUS_ACCEPTED)
public CollectionWithPagingInfo<Sheep> readAll(Parameters params)
{
throw new RuntimeException("read all");
}
示例7: create
@Override
@WebApiDescription(title = "Creates a multipart", successStatus = Status.STATUS_ACCEPTED)
public MultiPartTestResponse create(FormData formData, Parameters parameters, WithResponse withResponse)
{
return new MultiPartTestResponse(formData.getParameters().get("name")[0]);
}