chrriis.dj.nativeswing.swtimpl.components
Class WebBrowserNavigationParameters

java.lang.Object
  extended by chrriis.dj.nativeswing.swtimpl.components.WebBrowserNavigationParameters

public class WebBrowserNavigationParameters
extends Object

A class that allows to set HTTP headers and POST data to use during navigation requests.

Author:
Christopher Deckers

Constructor Summary
WebBrowserNavigationParameters()
           
 
Method Summary
 String[] getHeaders()
           
 String getPostData()
           
 void setHeaders(Map<String,String> keyValueMap)
          Set the headers using a map of key/value pairs.
 void setPostData(Map<String,String> keyValueMap)
          Set the POST data using a map of key/value pairs.
 void setPostData(String postData)
          Set the POST data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebBrowserNavigationParameters

public WebBrowserNavigationParameters()
Method Detail

setHeaders

public void setHeaders(Map<String,String> keyValueMap)
Set the headers using a map of key/value pairs.

Parameters:
keyValueMap - The key/value pair map containing the headers.

getHeaders

public String[] getHeaders()

setPostData

public void setPostData(String postData)
Set the POST data.

Parameters:
postData - The raw data to use as the body of the POST request.

setPostData

public void setPostData(Map<String,String> keyValueMap)
Set the POST data using a map of key/value pairs.

Parameters:
keyValueMap - The key/value pair map containing the POST data.

getPostData

public String getPostData()