public void setRegistro(String json) {
		DefaultHttpClient clienteHttp = new DefaultHttpClient();
		HttpPut requisicaoPUT;
		if (json.equals("")) {
			String url = getHost() + ":" + getPorta() + "/" + getNomebanco();
			requisicaoPUT = new HttpPut(URI.create(url));
			System.out.println("PUT : " + url);
		} else {
			String url = getHost() + ":" + getPorta() + "/" + getNomebanco()
					+ "/" + buscaId();
			requisicaoPUT = new HttpPut(URI.create(url));
			HttpEntity input = new StringEntity(json,
					ContentType.APPLICATION_JSON);
			requisicaoPUT.setEntity(input);
			System.out.println("PUT : " + url + " - " + json);
		}

		HttpResponse response;
		try {
			response = clienteHttp.execute(requisicaoPUT);
			System.out.println(response);
			JOptionPane.showMessageDialog(null,
					"Registro incluído com sucesso!", "Cadastro",
					JOptionPane.INFORMATION_MESSAGE);
		} catch (IOException e) {
			System.out
					.println("Erro na conexão! - setRegistro()/AcessoBanco.java");
		}
	}