addCookie | This method adds a Cookie to the HTTP response header when the header is sent. The cookie will not be added unless the header is sent automatically; if the header is printed by the caller using the println() methods, cookies added will not be sent. Note: The server sets cookies via the Set-Cookie header. Each cookie is set with its own Set-Cookie. Here is the syntax: Set-Cookie: session_id=6a4ffea80df889bd7bfe6a592c0789d8; path=/
Set-Cookie: member_id=67; expires=Thu, 26-Aug-04 10:27:18 GMT; path=/
Set-Cookie: pass_hash=4b8e908578ba4bc4ef26740b39bb8831; expires=Thu, 26-Aug-04 10:27:18 GMT; path=/
The client sends cookies back to the server via the Cookie: header of the client's http reques. All applicable cookies are sent in one Cookie header. Only the data prior to the ';' symbol is sent. Here is what the client sends back to the server in the above example:Cookie: session_id=6a4ffea80df889bd7bfe6a592c0789d8; member_id=67; pass_hash=4b8e908578ba4bc4ef26740b39bb8831
The client decides what cookies will be sent to specific servers. This determination is based on the URI being requested, cookie expiration dates, and other factors. |
addListener (inherited from Props) | Adds an IPropsChangeListener to the list of listeners for this object. |
append (inherited from Props) | If the specified object is a String, it is the specified String is appended to it. Otherwise the call is ignored. |
close | |
copy (inherited from Props) | Copies the value of the property with the same name as key from srcProps into the IPropsContainer for this object. |
copyFrom (inherited from Props) | Copies the contents of the specified Props into this one. |
copyTo (inherited from Props) | Copies the contents of this Props into the one specified. |
decrementInteger (inherited from Props) | Decrements the integer value of the specified key by 1. |
detectBrowsers | Tests the User-Agent value and stores the results as properties of this request. |
dump (inherited from Props) | Dumps a list of properties and their values to System.out. |
dumpToString (inherited from Props) | This returns the name/value pairs in a human-readable string. |
enableListeners (inherited from Props) | |
enumerateKeys (inherited from Props) | Returns an Enumeration of keys representing properties contained by this object's IPropsContainer. |
Equals (inherited from Object) | |
format (inherited from Props) | Uses the specified MessageFormat pattern this method generates a string containing the inserted values from the corresponding properties. The pattern string is passed to java.text.MessageFormat.format() after substituting appropriate argument indexes for property names. |
getAllRequestHeaders | Returns a Props containing all HTTP Request headers. |
getBoolean (inherited from Props) | Returns the boolean value of the requested property |
getByteArray (inherited from Props) | Returns specified object as a byte array. If the object is a String its getBytes methods is called to obtain a byte array. Otherwise, the object's String value is used to obtain a byte array. |
getCharacter (inherited from Props) | Returns the char value of the requested property |
getCookieString | This method returns the client cookies submitted with this request, formatted as a single string of name=value pairs separated by semi-colons. |
getDouble (inherited from Props) | Returns the double value of the requested property |
getFloat (inherited from Props) | Returns the float value of the requested property |
GetHashCode (inherited from Object) | |
getHexString (inherited from Props) | Returns the specified object as a String of hexadecimal bytes. |
getInteger (inherited from Props) | Returns the int value of the requested property |
getLong (inherited from Props) | Returns the long value of the requested property |
getProperty (inherited from Props) | Returns the property with the same name as the key parameter if available. If the requested property does not exist, null is returned instead. |
getRequestHeader | Returns the specified HTTP Request header. |
getSessionID | Overloaded. This method will automatically fetch the session ID of the requesting client's myCookies. The name of the session id cookie is assumed to be session_id. If no session_id prop is found in the client cookies, null (Nothing in Visual Basic) is returned. |
getSize (inherited from Props) | Returns the size of the specified object. If the object is a Vector, the number of elements it contains is returned. If the object is a String, its length is returned. For other objects the length of the object's string value is returned. If the object does not exist, zero is returned. |
getString (inherited from Props) | Returns the String value of the requested property |
getTokens (inherited from Props) | Overloaded. Returns a Vector of Strings representing the tokens stored stored in the specified property separated by a comma, semi-colon, carriage return, or line-feed. |
getTrimmedString (inherited from Props) | Returns the specified object as a trimmed String. |
GetType (inherited from Object) | |
getUnderlyingSocket | Returns the underlying System.Net.Sockets.Socket associated with this HTTPAgentRequest. If there is no underlying Socket or if the Socket is unavailable, a null is returned. |
getUserAgent | Overloaded. Returns the value of the "User-Agent" header parameter. |
getVector (inherited from Props) | Returns the specified object as a Vector. If the specified object is not a Vector, it is placed in a Vector and returned. if the object does not exist, an empty Vector is returned. |
hasProperty (inherited from Props) | Tests the existence of the specified property. |
incrementInteger (inherited from Props) | Increments the integer value of the specified key by 1. |
insertProps (inherited from Props) | Inserts property String values into the passed string where property names are surrounded by angle brackets. |
isRequestType (inherited from AgentRequest) | Returns true if this request's type matches the specified type; false otherwise. |
notifyPropsChanged (inherited from Props) | Can be called externally to manually send props changes messages to all registered IPropsChangeListeners. |
notifyPropsChangedIgnore (inherited from Props) | Overloaded. Can be called externally to manually send props changes messages to all registered IPropsChangeListeners, except the one passed. Passing a null IPropsChangeLister will result in the notification of all registered listeners; the same as notifyPropsChanged. |
print | Prints String input and header information (content-type, etc.). |
println | Overloaded. Prints String and header information to HTML output. |
removeAll (inherited from Props) | Removes all properties referenced by this class. |
removeListener (inherited from Props) | Removes an IPropsChangeListener from the list of listeners for this object. |
removeProperty (inherited from Props) | Removes the property with the same name as the key parameter if available. If the requested property does not exist, false is returned. |
resumeNotify (inherited from Props) | Resumes the automatic notification of IPropsChangeListeners. Calling this method will immediately call the propsChanged method of its IPropsChangeListeners passing an array of property names which have changed since suspendNotify was called. |
setBoolean (inherited from Props) | Sets the property key to a Boolean of the passed value. |
setCharacter (inherited from Props) | Sets the property key to a Character of the passed value. |
setDefault (inherited from Props) | If there is no value for the specified object, it is set to the value specified as default. |
setDouble (inherited from Props) | Sets the property key to a Double of the passed value. |
setFloat (inherited from Props) | Sets the property key to a Float of the passed value. |
setInteger (inherited from Props) | Sets the property key to a Integer of the passed value. |
setLong (inherited from Props) | Sets the property key to a Long of the passed value. |
setProperty (inherited from Props) | Overloaded. Sets the property key to the passed value. |
setSessionCookie | Overloaded. This method will automatically set a cookie that will be written to the client with the response header. The session ID cookie name is assumed to be session_id, the path cookie name is assumed to be path, and the name of the expires value name is assumed to be expires. If a path and/or expires value is not found in the session Props for this session ID, they will not be included with the cookie. |
suspendNotify (inherited from Props) | Suspends the automatic notification of IPropsChangeListeners. This is useful for when several property changes need to be made without calling the propsChanged method of the IPropsChangeListeners for each one. After this method is called, property changes are queued until the resumeNotify method is called. Each successive call to this method must be matched with a call to resumeNotify in order for notification to work correctly. |
ToString (inherited from Object) | |