All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.monsterworks.net.Poster



java.lang.Object
   |
   +----com.monsterworks.net.Poster

public class Poster
extends java.lang.Object
This package handles posting information back to a Web Server.

Version:
1.0b
Author:
Aaron Montgomery

Constructor Index

 o Poster(String, int, String)
This method constructs a Poster which will post to the CGI script indicated by the parameters.

Method Index

 o post(String)
This method actually causes a POST event to be sent to the server.

Constructors

 o Poster


 public Poster(java.lang.String inHome,
               int inPort,
               java.lang.String inScript)
This method constructs a Poster which will post to the CGI script indicated by the parameters.

Parameters:
inHome - is the http address of the server on which the CGI script resides
inPort - is the port to contact the server (conventionally 80)
inScript - is the path to the script on the server

Methods

 o post


 public java.lang.String post(java.lang.String inPost) throws java.io.IOException
This method actually causes a POST event to be sent to the server.

Parameters:
inPost - is the message of the post. The standard header


HTTP/1.0
Content-type: text/plain
Content-length:
will be prepended to inPost prior to posting.
inPost - is the information being sent to the server
Returns:
s the servers response to the post



All Packages  Class Hierarchy  This Package  Previous  Next  Index