fix
Class Sender

java.lang.Object
  extended by fix.Sender

public class Sender
extends java.lang.Object


Field Summary
 java.lang.String boundary
           
private  java.lang.String comm
           
private  boolean debug
           
private  ErrorWindow er
           
private  boolean error
           
private  java.lang.String file
           
 HttpClient hc
           
private  java.lang.String host
           
private  java.lang.String id
           
private  boolean mime
           
private  int port
           
private  java.lang.String rec
           
private  long seek
           
private  java.lang.String sid
           
private  java.lang.String url
           
private  java.lang.String user
           
 
Constructor Summary
Sender(java.lang.String reci, java.lang.String file, java.lang.String comment, boolean m, java.lang.String server, java.lang.String user, java.lang.String id, ErrorWindow err)
          The constructor used by the Applet version
 
Method Summary
 java.lang.String receive(java.io.BufferedReader from_server)
          Receives the response from the server and writes it to an OutputStream
 void send()
          Sends the MIME-Messages used to prepare the upload and starts the upload.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rec

private java.lang.String rec

file

private java.lang.String file

comm

private java.lang.String comm

host

private java.lang.String host

user

private java.lang.String user

id

private java.lang.String id

boundary

public java.lang.String boundary

url

private java.lang.String url

port

private int port

hc

public HttpClient hc

debug

private boolean debug

seek

private long seek

sid

private java.lang.String sid

er

private ErrorWindow er

error

private boolean error

mime

private boolean mime
Constructor Detail

Sender

public Sender(java.lang.String reci,
              java.lang.String file,
              java.lang.String comment,
              boolean m,
              java.lang.String server,
              java.lang.String user,
              java.lang.String id,
              ErrorWindow err)
The constructor used by the Applet version

Parameters:
reci - The recipient of the file.
file - The file to be sent.
comment - The optional comment (may be null or empty String).
m - Flag to set MIME-Type to application/x-mime.
server - The URL of the F*EX Server
user - The user that sends the file.
id - The auth-id of this user.
err - The ErrorWindow used to display errors.
Method Detail

send

public void send()
Sends the MIME-Messages used to prepare the upload and starts the upload.


receive

public java.lang.String receive(java.io.BufferedReader from_server)
Receives the response from the server and writes it to an OutputStream

Returns:
response from server