Global vars edited
This commit is contained in:
		
							
								
								
									
										3
									
								
								.idea/vcs.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								.idea/vcs.xml
									
									
									
										generated
									
									
									
								
							@@ -1,7 +1,6 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
<project version="4">
 | 
					<project version="4">
 | 
				
			||||||
  <component name="VcsDirectoryMappings">
 | 
					  <component name="VcsDirectoryMappings">
 | 
				
			||||||
    <mapping directory="" vcs="" />
 | 
					    <mapping directory="$PROJECT_DIR$" vcs="Git" />
 | 
				
			||||||
  </component>
 | 
					  </component>
 | 
				
			||||||
</project>
 | 
					</project>
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
										
											Binary file not shown.
										
									
								
							@@ -6,14 +6,12 @@ import java.util.ArrayList;
 | 
				
			|||||||
import java.util.List;
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class ClientThread extends Thread{
 | 
					public class ClientThread extends Thread{
 | 
				
			||||||
    private Socket       socket;
 | 
					    private final Socket       socket;
 | 
				
			||||||
    private int          id;
 | 
					    private final int          id;
 | 
				
			||||||
    private PrintStream out;
 | 
					    private PrintStream out;
 | 
				
			||||||
    private InputStream in;
 | 
					 | 
				
			||||||
    private String       cmd;
 | 
					    private String       cmd;
 | 
				
			||||||
    private String       url;
 | 
					    private String       url;
 | 
				
			||||||
    private String       httpversion;
 | 
					    private final StringBuilder rqBuilder;
 | 
				
			||||||
    private StringBuilder rqBuilder;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Neuer Client wird erstellt
 | 
					     * Neuer Client wird erstellt
 | 
				
			||||||
@@ -34,7 +32,7 @@ public class ClientThread extends Thread{
 | 
				
			|||||||
        try{
 | 
					        try{
 | 
				
			||||||
            System.out.println("Socket von Client #" + this.id + " wurde gestartet!");
 | 
					            System.out.println("Socket von Client #" + this.id + " wurde gestartet!");
 | 
				
			||||||
            out = new PrintStream(socket.getOutputStream());
 | 
					            out = new PrintStream(socket.getOutputStream());
 | 
				
			||||||
            in = socket.getInputStream();
 | 
					            InputStream in = socket.getInputStream();
 | 
				
			||||||
            getRequest();
 | 
					            getRequest();
 | 
				
			||||||
            createResponse();
 | 
					            createResponse();
 | 
				
			||||||
            socket.close();
 | 
					            socket.close();
 | 
				
			||||||
@@ -109,7 +107,6 @@ public class ClientThread extends Thread{
 | 
				
			|||||||
        String host = requestsLines[1].split(" ")[1];
 | 
					        String host = requestsLines[1].split(" ")[1];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.url = path;
 | 
					        this.url = path;
 | 
				
			||||||
        this.httpversion = version;
 | 
					 | 
				
			||||||
        this.cmd = method;
 | 
					        this.cmd = method;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        List<String> headers = new ArrayList<>();
 | 
					        List<String> headers = new ArrayList<>();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user