/* * Copyright IBM Corporation, 2013. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.neutron.northbound.api; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.DefaultValue; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.UriInfo; import org.codehaus.enunciate.jaxrs.ResponseCode; import org.codehaus.enunciate.jaxrs.StatusCodes; import org.codehaus.enunciate.jaxrs.TypeHint; import org.opendaylight.neutron.spi.INeutronVPNIPSECPolicyAware; import org.opendaylight.neutron.spi.NeutronVPNIPSECPolicy; /** * Neutron Northbound REST APIs for VPN IPSEC Policy.
* This class provides REST APIs for managing neutron VPN IPSEC Policies * *
*
* Authentication scheme : HTTP Basic
* Authentication realm : opendaylight
* Transport : HTTP and HTTPS
*
* HTTPS Authentication is disabled by default. Administrator can enable it in * tomcat-server.xml after adding a proper keystore / SSL certificate from a * trusted authority.
* More info : * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration * */ @Path("/vpn/ipsecpolicies") public class NeutronVPNIPSECPoliciesNorthbound { @Context UriInfo uriInfo; /** * Returns a list of all VPN IPSEC Policies */ @GET @Produces({ MediaType.APPLICATION_JSON }) @StatusCodes({ @ResponseCode(code = 501, condition = "Not Implemented") }) public Response listVPNIPSECPolicies( ) { throw new UnimplementedException("Not Implemented"); } /** * Returns a specific VPN IPSEC Policy */ @Path("{serviceID}") @GET @Produces({ MediaType.APPLICATION_JSON }) @StatusCodes({ @ResponseCode(code = 501, condition = "Not Implemented") }) public Response showVPNIPSECPolicy( @PathParam("serviceID") String serviceID, // return fields @QueryParam("fields") List fields ) { throw new UnimplementedException("Not Implemented"); } /** * Creates new VPN IPSEC Policy */ @POST @Produces({ MediaType.APPLICATION_JSON }) @Consumes({ MediaType.APPLICATION_JSON }) @TypeHint(NeutronVPNIPSECPolicy.class) @StatusCodes({ @ResponseCode(code = 501, condition = "Not Implemented") }) public Response createVPNIPSECPolicy(final NeutronVPNIPSECPolicyRequest input) { throw new UnimplementedException("Not Implemented"); } /** * Updates a VPN IPSEC Policy */ @Path("{policyID}") @PUT @Produces({ MediaType.APPLICATION_JSON }) @Consumes({ MediaType.APPLICATION_JSON }) @StatusCodes({ @ResponseCode(code = 501, condition = "Not Implemented") }) public Response updateVPNIPSECPolicy( @PathParam("policyID") String policyID, final NeutronVPNIPSECPolicyRequest input ) { throw new UnimplementedException("Not Implemented"); } /** * Deletes a VPN IPSEC Policy */ @Path("{policyID}") @DELETE @StatusCodes({ @ResponseCode(code = 501, condition = "Not Implemented") }) public Response deleteVPNIPSECPolicy( @PathParam("policyID") String policyID) { throw new UnimplementedException("Not Implemented"); } }