summaryrefslogblamecommitdiffstats
path: root/src/main/java/org/openslx/imagemaster/serverconnection/Connection.java
blob: c6606ac02c5c53d5bf70e5ee4ad30acc3628b948 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

                                                 
                       










                                                  
                                           



                                                        




                                                                                                 
                                                           


                                         

         
package org.openslx.imagemaster.serverconnection;

public class Connection
{
	/**
	 * Where the file is stored locally.
	 */
	protected final String filepath;
	
	/**
	 * Type of this connection.
	 * True if uploading, false if downloading
	 */
	protected final boolean type;
	public UploadingImage image = null;
	public final static boolean UPLOADING = true;
	public final static boolean DOWNLOADING = false;
	
	/**
	 * Create a new connection data
	 * @param filepath Where the file is stored locally
	 * @param type True if uploading, false if downloading
	 * @param listenerThread The active listener thread that listens for incoming connections
	 */
	protected Connection(String filepath, boolean type)
	{
		this.filepath = filepath;
		this.type = type;
	}
}