org.lobobrowser.clientlet
Interface ClientletRequest


public interface ClientletRequest

A URL request such as a HTTP, file or FTP request.


Method Summary
 java.lang.String getAltPostData()
          Provides alternative POST data in case no ParameterInfo is provied.
 Header[] getExtraHeaders()
          Gets additional headers used in the request.
 java.lang.String getMethod()
          Gets the request method.
 ParameterInfo getParameterInfo()
          Gets information about the request parameters.
 java.lang.String getReferrer()
          Gets the referring URL.
 RequestType getRequestType()
          Gets the type of request.
 java.net.URL getRequestURL()
          Gets the request URL.
 UserAgent getUserAgent()
          Gets information about the user agent making the request.
 boolean isGetRequest()
          Convenience method.
 boolean isNewWindowRequest()
          Determines if the request was made in order to open a new browser window.
 boolean isPostRequest()
          Convenience method.
 

Method Detail

getMethod

java.lang.String getMethod()
Gets the request method.

Returns:
GET, POST, etc.

getRequestURL

java.net.URL getRequestURL()
Gets the request URL.


getUserAgent

UserAgent getUserAgent()
Gets information about the user agent making the request.


getReferrer

java.lang.String getReferrer()
Gets the referring URL. It should be null if none or unknown.


getParameterInfo

ParameterInfo getParameterInfo()
Gets information about the request parameters.


getExtraHeaders

Header[] getExtraHeaders()
Gets additional headers used in the request.


isGetRequest

boolean isGetRequest()
Convenience method. Determines if the request method is GET.


isPostRequest

boolean isPostRequest()
Convenience method. Determines if the request method is POST.


isNewWindowRequest

boolean isNewWindowRequest()
Determines if the request was made in order to open a new browser window.


getAltPostData

java.lang.String getAltPostData()
Provides alternative POST data in case no ParameterInfo is provied.


getRequestType

RequestType getRequestType()
Gets the type of request.



SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Lobo Home]