
import java.net.URL;
import java.net.URLConnection;
import java.io.*;
import org.json.simple.JSONObject;

public class PutOnServer implements UserDao {
	
	URL url = new URL (http://localhost:8080);
	URLConnection connection = url.openConnection();
	HttpURLConnection httpCon = (HttpURLConnection) url.openConnection();

	connection.setDoOutput(true);
    OutputStreamWriter writer=new OutputStreamWriter(conn.getOutputStream());
    JSONObject json=null;

    public static putDetails(int id, String mail, String userName, String sn, String givenName){
    	json=new JSONObject();
    	json.put("id", 2023 );
    	json.put("mail", lukas4@gmail.com );
    	json.put("userName", lukas,  );
    	json.put("sn", sn210,  );
    	json.put("givenName", lukasss,  );
    }


}

@@ -1,28 +1,63 @@
+%0Aimport java.net.HttpURLConnection;
 %0Aimport java.net.URL;%0Aimport
@@ -184,16 +184,23 @@
 ao %7B%0A%09%0A%09
+static 
 URL url 
@@ -214,13 +214,8 @@
 RL (
-http:
 //lo
@@ -280,16 +280,23 @@
 ion();%0A%09
+static 
 HttpURLC
@@ -389,16 +389,52 @@
 (true);%0A
+%09httpCon.setRequestMethod(%22PUT%22);%0A%09%0A
     Outp
@@ -482,16 +482,22 @@
 ter(conn
+ection
 .getOutp
@@ -513,16 +513,23 @@
 ));%0A    
+static 
 JSONObje
@@ -561,16 +561,21 @@
  static 
+void 
 putDetai
@@ -645,16 +645,418 @@
 nName)%7B%0A
+    %09httpCon.setRequestProperty(%22Content-Type%22, %22application/json%22);%0A    %09httpCon.setRequestProperty(%22Accept%22, %22application/json%22);%0A    %09httpCon.setRequestProperty(%22If-None-Match%22, %22*'%22);%0A     %09httpCon.setRequestProperty(%22X-OpenIDM-Username%22, %22openidm-admin%22);%0A     %09httpCon.setRequestProperty(%22X-OpenIDM-Username%22, %22openidm-admin%22);%0A     %09httpCon.setRequestProperty(%22X-Requested-With%22, %22Swagger-UI%22);%0A
     %09jso
@@ -1125,16 +1125,17 @@
 %22mail%22, 
+%22
 lukas4@g
@@ -1142,16 +1142,17 @@
 mail.com
+%22
  );%0A    
@@ -1177,16 +1177,15 @@
 e%22, 
+%22
 lukas
-,  
+%22
 );%0A 
@@ -1207,16 +1207,15 @@
 n%22, 
+%22
 sn210
-,  
+%22
 );%0A 
@@ -1244,16 +1244,17 @@
 e%22, 
+%22
 lukasss
-,
+%22
   );

Update PutOnServer.java