de.j4ee.webloader.net
Class Networker

java.lang.Object
  extended by de.j4ee.webloader.net.Networker

public class Networker
extends java.lang.Object

This class provides mechanism to call back the server to submit basic data about the function of the applet on clientside.
There is no Warranty

Version:
1.0
Author:
Kristian Martin

Field Summary
 java.lang.String AGENT
           
 boolean fillRefererWithPreviousUsedUrl
           
static int FOLLOWMODE_DETAILED
           
static int FOLLOWMODE_HIDDEN
           
static int FOLLOWMODE_NOFOLLOW
           
 java.io.OutputStream outputStream
          If Outputstream is set, the output would be streamed there (line based)
static java.lang.String PLAIN_BODY_KEY
           
 boolean streamOnly
          If set to true the output of the request would be only streamed to defined outputstream (Redirected)
 java.lang.Integer TIMEOUT
           
 boolean trace
           
 
Constructor Summary
Networker(boolean ssl)
          Constructor
 
Method Summary
 NetResult getNetResult()
          Retrieves NetResult
 java.lang.String send(java.net.URL url, java.util.Map postprops, CookieHolder si, java.util.Map requestProperties, int followMode)
          Sends data to URL
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGENT

public java.lang.String AGENT

TIMEOUT

public java.lang.Integer TIMEOUT

trace

public boolean trace

outputStream

public java.io.OutputStream outputStream
If Outputstream is set, the output would be streamed there (line based)


streamOnly

public boolean streamOnly
If set to true the output of the request would be only streamed to defined outputstream (Redirected)


fillRefererWithPreviousUsedUrl

public boolean fillRefererWithPreviousUsedUrl

FOLLOWMODE_NOFOLLOW

public static final int FOLLOWMODE_NOFOLLOW
See Also:
Constant Field Values

FOLLOWMODE_HIDDEN

public static final int FOLLOWMODE_HIDDEN
See Also:
Constant Field Values

FOLLOWMODE_DETAILED

public static final int FOLLOWMODE_DETAILED
See Also:
Constant Field Values

PLAIN_BODY_KEY

public static final java.lang.String PLAIN_BODY_KEY
See Also:
Constant Field Values
Constructor Detail

Networker

public Networker(boolean ssl)
Constructor

Method Detail

getNetResult

public NetResult getNetResult()
Retrieves NetResult

Returns:
netresult

send

public java.lang.String send(java.net.URL url,
                             java.util.Map postprops,
                             CookieHolder si,
                             java.util.Map requestProperties,
                             int followMode)
Sends data to URL

Parameters:
url - destination-URL
postprops - Post-data as key-value-pairs or plain using <BODY>(PlainBodyKey) as key.
si - Cookieholder containg cookies to be send along
requestProperties - used to set requestProperties to the connection
Returns:
Result bodycontent
Throws:
java.lang.Exception