• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java StatusCodes类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.codehaus.enunciate.jaxrs.StatusCodes的典型用法代码示例。如果您正苦于以下问题:Java StatusCodes类的具体用法?Java StatusCodes怎么用?Java StatusCodes使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



StatusCodes类属于org.codehaus.enunciate.jaxrs包,在下文中一共展示了StatusCodes类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createL2gateway

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Creates L2gateway.
 * @param input l2gateway attributes
 * @return success or error code
 */
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_CREATED, condition = "Created"),
        @ResponseCode(code = HttpURLConnection.HTTP_BAD_REQUEST, condition = "Bad Request"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_FORBIDDEN, condition = "Forbidden"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_CONFLICT, condition = "Conflict"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })

public Response createL2gateway(final NeutronL2gatewayRequest input) {
    LOG.debug("CreateL2gateway     NeutronL2gatewayRequest");
    return create(input);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:22,代码来源:NeutronL2gatewayNorthbound.java


示例2: showVpnIPSecPolicy

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a specific VPN IPSEC Policy.
 */

@Path("{policyID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_FORBIDDEN, condition = "Forbidden"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response showVpnIPSecPolicy(@PathParam("policyID") String policyUUID,
                                   // return fields
                                   @QueryParam("fields") List<String> fields) {
    return show(policyUUID, fields);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:19,代码来源:NeutronVpnIpSecPoliciesNorthbound.java


示例3: showRouter

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a specific Router.
 */

@Path("{routerUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
//@TypeHint(OpenStackRouters.class)
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_FORBIDDEN, condition = "Forbidden"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response showRouter(@PathParam("routerUUID") String routerUUID,
        // return fields
        @QueryParam("fields") List<String> fields) {
    return show(routerUUID, fields);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:20,代码来源:NeutronRoutersNorthbound.java


示例4: showPort

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a specific Port.
 */

@Path("{portUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
//@TypeHint(OpenStackPorts.class)
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response showPort(@PathParam("portUUID") String portUUID,
        // return fields
        @QueryParam("fields") List<String> fields) {
    return show(portUUID, fields);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:19,代码来源:NeutronPortsNorthbound.java


示例5: showVpnIPSecSiteConnection

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a specific VPN IPSEC SiteConnection.
 */

@Path("{connectionID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_FORBIDDEN, condition = "Forbidden"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response showVpnIPSecSiteConnection(@PathParam("connectionID") String connectionID,
                                           // return fields
                                           @QueryParam("fields") List<String> fields) {
    return show(connectionID, fields);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:19,代码来源:NeutronVpnIpSecSiteConnectionsNorthbound.java


示例6: showNetwork

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a specific Network.
 */

@Path("{netUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
//@TypeHint(OpenStackNetworks.class)
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response showNetwork(@PathParam("netUUID") String netUUID,
        // return fields
        @QueryParam("fields") List<String> fields) {
    return show(netUUID, fields);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:19,代码来源:NeutronNetworksNorthbound.java


示例7: showLoadBalancerHealthMonitor

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a specific LoadBalancerHealthMonitor.
 */

@Path("{loadBalancerHealthMonitorID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response showLoadBalancerHealthMonitor(
        @PathParam("loadBalancerHealthMonitorID") String loadBalancerHealthMonitorID,
        // return fields
        @QueryParam("fields") List<String> fields) {
    return show(loadBalancerHealthMonitorID, fields);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:19,代码来源:NeutronLoadBalancerHealthMonitorNorthbound.java


示例8: updateTapFlow

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Updates a Tap Flow.
 */
@Path("{tapServiceUUID}/flows/{tapFlowUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response updateTapFlow(@PathParam("tapServiceUUID") String tapServiceUUID,
                              @PathParam("tapFlowUUID") String tapFlowUUID,
                              final NeutronTapFlowRequest input) {

    INeutronTapFlowCRUD tapFlowInterface = getNeutronCRUD();

    if (!tapFlowInterface.tapFlowExists(tapServiceUUID, tapFlowUUID)) {
        throw new ResourceNotFoundException("Specified UUID does not Exist");
    }

    NeutronTapFlow singleton = input.getSingleton();
    singleton.setTapFlowServiceID(tapServiceUUID);
    tapFlowInterface.updateTapFlow(singleton);

    return Response.status(HttpURLConnection.HTTP_OK).entity(input).build();
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:27,代码来源:NeutronTapFlowNorthbound.java


示例9: deleteTapFlow

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Deletes a Tap Flow.
 */
@Path("{tapServiceUUID}/flows/{tapFlowUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response deleteTapFlow(@PathParam("tapServiceUUID") String tapServiceUUID,
                              @PathParam("tapFlowUUID") String tapFlowUUID) {

    INeutronTapFlowCRUD tapFlowInterface = getNeutronCRUD();

    if (!tapFlowInterface.tapFlowExists(tapServiceUUID, tapFlowUUID)) {
        throw new ResourceNotFoundException("Specified UUID does not Exist");
    }

    tapFlowInterface.deleteTapFlow(tapServiceUUID, tapFlowUUID);
    return Response.status(HttpURLConnection.HTTP_NO_CONTENT).build();
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:21,代码来源:NeutronTapFlowNorthbound.java


示例10: showLoadBalancer

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a specific LoadBalancer.
 */

@Path("{loadBalancerID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })

@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response showLoadBalancer(@PathParam("loadBalancerID") String loadBalancerID,
        // return fields
        @QueryParam("fields") List<String> fields) {
    return show(loadBalancerID, fields);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:19,代码来源:NeutronLoadBalancerNorthbound.java


示例11: showMeteringLabel

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a specific metering label.
 */

@Path("{labelUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_FORBIDDEN, condition = "Forbidden"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response showMeteringLabel(@PathParam("labelUUID") String labelUUID,
        // return fields
        @QueryParam("fields") List<String> fields) {
    return show(labelUUID, fields);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:19,代码来源:NeutronMeteringLabelsNorthbound.java


示例12: listSFCPortPairs

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a list of all SFC Port Pairs.
 */

@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response listSFCPortPairs(
        // return fields
        @QueryParam("fields") List<String> fields,
        @QueryParam("id") String queryID,
        @QueryParam("name") String queryName,
        @QueryParam("tenant_id") String queryTenantID,
        @QueryParam("ingress") String queryIngressPort,
        @QueryParam("egress") String queryEgressPort) {
    INeutronSFCPortPairCRUD sfcPortPairInterface = getNeutronCRUD();
    List<NeutronSFCPortPair> allSFCPortPair = sfcPortPairInterface.getAll();
    List<NeutronSFCPortPair> ans = new ArrayList<>();
    for (NeutronSFCPortPair sfcPortPair : allSFCPortPair) {
        if ((queryID == null || queryID.equals(sfcPortPair.getID()))
                && (queryName == null || queryName.equals(sfcPortPair.getName()))
                && (queryIngressPort == null || queryIngressPort.equals(sfcPortPair.getIngressPortUUID()))
                && (queryEgressPort == null || queryEgressPort.equals(sfcPortPair.getEgressPortUUID()))
                && (queryTenantID == null || queryTenantID.equals(sfcPortPair.getTenantID()))) {
            if (fields.size() > 0) {
                ans.add(sfcPortPair.extractFields(fields));
            } else {
                ans.add(sfcPortPair);
            }
        }
    }

    return Response.status(HttpURLConnection.HTTP_OK).entity(new NeutronSFCPortPairRequest(ans)).build();

}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:39,代码来源:NeutronSFCPortPairsNorthbound.java


示例13: updateFirewallPolicy

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Updates a Firewall Policy.
 */
@Path("{firewallPolicyUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
//@TypeHint(OpenStackSubnets.class)
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response updateFirewallPolicy(@PathParam("firewallPolicyUUID") String firewallPolicyUUID,
        final NeutronFirewallPolicyRequest input) {
    return update(firewallPolicyUUID, input);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:16,代码来源:NeutronFirewallPolicyNorthbound.java


示例14: createSFCPortPair

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Creates new SFC Port Pair.
 */
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_CREATED, condition = "Created"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response createSFCPortPair(final NeutronSFCPortPairRequest input) {
    return create(input);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:12,代码来源:NeutronSFCPortPairsNorthbound.java


示例15: updateSFCPortPair

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Updates an existing SFC Port Pair.
 */
@Path("{portPairUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response updateSFCPortPair(@PathParam("portPairUUID") String sfcPortPairUUID,
        final NeutronSFCPortPairRequest input) {
    return update(sfcPortPairUUID, input);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:15,代码来源:NeutronSFCPortPairsNorthbound.java


示例16: deleteSFCPortPair

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Deletes the SFC Port Pair.
 */

@Path("{portPairUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response deleteSFCPortPair(@PathParam("portPairUUID") String sfcPortPairUUID) {
    return delete(sfcPortPairUUID);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:13,代码来源:NeutronSFCPortPairsNorthbound.java


示例17: showSecurityRule

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a specific Security Rule.
 */

@Path("{securityRuleUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response showSecurityRule(@PathParam("securityRuleUUID") String securityRuleUUID,
        // return fields
        @QueryParam("fields") List<String> fields) {
    return show(securityRuleUUID, fields);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:18,代码来源:NeutronSecurityRulesNorthbound.java


示例18: showL2gateway

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Returns a specific L2gateway.
 * @param l2gatewayID requested l2gateway uuid
 * @param fields l2gateway attributes
 * @return l2gateway details or error.
 */
@Path("{l2gatewayID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAUTHORIZED, condition = "Unauthorized"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_IMPLEMENTED, condition = "Not Implemented"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response showL2gateway(@PathParam("l2gatewayID") String l2gatewayID,
        // return fields
        @QueryParam("fields") List<String> fields) {
    return show(l2gatewayID, fields);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:20,代码来源:NeutronL2gatewayNorthbound.java


示例19: deleteL2gateway

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Deletes a L2gateway.
 * @param l2gatewayID l2gateway uuid which should be deleted
 * @return success or error code
 * */

@Path("{l2gatewayID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response deleteL2gateway(@PathParam("l2gatewayID") String l2gatewayID) {
    return delete(l2gatewayID);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:15,代码来源:NeutronL2gatewayNorthbound.java


示例20: updateL2gateway

import org.codehaus.enunciate.jaxrs.StatusCodes; //导入依赖的package包/类
/**
 * Updates a L2gateway.
 * @param l2gatewayID gateway ID that needs to be modified
 * @param input gateway attributes
 * @return status
 * */
@Path("{l2gatewayID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_OK, condition = "Operation successful"),
        @ResponseCode(code = HttpURLConnection.HTTP_NOT_FOUND, condition = "Not Found"),
        @ResponseCode(code = HttpURLConnection.HTTP_UNAVAILABLE, condition = "No providers available") })
public Response updateL2gateway(@PathParam("l2gatewayID") String l2gatewayID, NeutronL2gatewayRequest input) {
    return update(l2gatewayID, input);
}
 
开发者ID:opendaylight,项目名称:neutron,代码行数:17,代码来源:NeutronL2gatewayNorthbound.java



注:本文中的org.codehaus.enunciate.jaxrs.StatusCodes类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RpcEngine类代码示例发布时间:2022-05-22
下一篇:
Java GeoQuery类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap