@GET
	@Path("/v2.0/ports")
	@Produces({MediaType.APPLICATION_JSON, OpenstackNetProxyConstants.TYPE_RDF})
	public Response listPort(@HeaderParam("Accept") String accept) throws MalformedURLException, IOException{
		if (accept.equals(OpenstackNetProxyConstants.TYPE_RDF)){
			System.out.println(accept);
			String dataFromKB=PortOntology.listPort();
			System.out.println(dataFromKB);
//			XmlTester t=new XmlTester();
			return Response.status(200).header("Access-Control-Allow-Origin", "*").entity(dataFromKB).build();
		}
		else{
			//Send HTTP request and receive a list of Json content
			HttpURLConnection conn=HTTPConnector.HTTPConnect(new URL(this.URLpath), OpenstackNetProxyConstants.HTTP_METHOD_GET, null);
			String response=HTTPConnector.printStream(conn);
			Object result;
			result=(ExtendedPort) JsonUtility.fromResponseStringToObject(response, ExtendedPort.class);
			int responseCode=conn.getResponseCode();
			HTTPConnector.HTTPDisconnect(conn);
			return Response.status(responseCode).header("Access-Control-Allow-Origin", "*").entity(result).build();
		}
	}