[Resolvido]Como enviar headers parameters com HTTPConnection do android ?

Olá pessoal,
Eu tenho um Webservice feito em java e preciso fazer um post do android com alguns parametros headers, estou conseguindo a conexão mais o webservice não esta conseguindo ler os parâmetros:
Alguém pode ajudar ?

O método post do webservice:

@POST
@Path("/entregue")
@Produces(MediaType.APPLICATION_JSON + “;charset=utf-8”)
public Message postPedidoEntregue(@HeaderParam(“login”) String login, @HeaderParam(“password”) String password,
@HeaderParam(“pedidoId”) String pedidoId) {
System.out.println(login + ", " + password + ", " + pedidoId);
Message message = null;

	try {
		if (login != null && password != null)
			if (PasswordService.getInstance().isCorrect(login, password)) {
				new PedidoService().entregarPedido(Integer.valueOf(pedidoId));
			}

	} catch (ServiceException e) {
		message = new Message();
		message.setTitle("Error");
		message.setText(e.getMessage());
		LOGGER.error(e.getMessage());
		e.printStackTrace();
	}
	if (message == null) {
		message = new Message();
		message.setTitle("Success");
		message.setText("Pediddo entregue");
	}
	return message;
}</code>

Codigo da requisição anroid:

HttpURLConnection urlConnection = null;
BufferedReader reader = null;

        try {
            URL url = new URL("http://*****");
            Log.e("Try Connect first", "POST");


            String parameters = "login=****&password=******&pedidoId=" + pedido.getId();
            int postDataLength = postData.length;
            // Cria o Request (POST) e abre a conexão
            urlConnection = (HttpURLConnection) url.openConnection();
            urlConnection.setDoOutput(true);
            urlConnection.setDoInput(true);
            urlConnection.setRequestMethod("POST");
            urlConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
            urlConnection.setRequestProperty("charset", "utf-8");
            urlConnection.setRequestProperty("Content-Length", Integer.toString(postDataLength));
            try (OutputStreamWriter writer = new OutputStreamWriter(urlConnection.getOutputStream())) {

                writer.write(parameters);
                writer.flush();
            }

            InputStream inputStream = urlConnection.getInputStream();
            StringBuffer buffer = new StringBuffer();

            if (inputStream != null) {
                reader = new BufferedReader(new InputStreamReader(inputStream));

                String line;
                while ((line = reader.readLine()) != null) {
                    buffer.append(line);
                }
                responseJson = buffer.toString();
               

            } else {
                throw new Exception("No Connection");
            }

            Log.e("Try Connect", buffer.toString());

Agradeço desde já