All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.pagecompile.GeneratedFrame

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.ResourceFrame
                                   |
                                   +----org.w3c.tools.resources.ProtocolFrame
                                           |
                                           +----org.w3c.jigsaw.frames.HTTPFrame
                                                   |
                                                   +----org.w3c.jigsaw.frames.PostableFrame
                                                           |
                                                           +----org.w3c.jigsaw.pagecompile.GeneratedFrame

public abstract class GeneratedFrame
extends PostableFrame

Constructor Index

 o GeneratedFrame()

Method Index

 o get(Request)
The default GET method.
 o get(Request, Reply, PageCompileOutputStream)
All java code extracted between and from the jhtml page will be put in this method body.
 o getConvertGetFlag()
Get the 'convert GET to POST' flag.
 o handle(Request, URLDecoder)
Handle the form submission, after posted data parsing.
 o perform(RequestInterface)
Perform the request
 o post(Request, Reply, URLDecoder, PageCompileOutputStream)
Handle the form submission, after posted data parsing.

Constructors

 o GeneratedFrame
 public GeneratedFrame()

Methods

 o getConvertGetFlag
 public boolean getConvertGetFlag()
Get the 'convert GET to POST' flag. Always return false in GeneratedFrame, could be overriden.

Returns:
a boolean.
Overrides:
getConvertGetFlag in class PostableFrame
 o perform
 public ReplyInterface perform(RequestInterface req) throws ProtocolException, ResourceException
Perform the request

Parameters:
req - The request to handle.
Throws: ProtocolException
If processsing the request failed.
Throws: ResourceException
If the resource got a fatal error.
Overrides:
perform in class HTTPFrame
 o get
 public Reply get(Request request) throws ProtocolException, ResourceException
The default GET method.

Parameters:
request - The request to handle.
Throws: ProtocolException
If processsing the request failed.
Throws: ResourceException
If the resource got a fatal error.
Overrides:
get in class PostableFrame
 o post
 protected void post(Request request,
                     Reply reply,
                     URLDecoder data,
                     PageCompileOutputStream out) throws ProtocolException, IOException
Handle the form submission, after posted data parsing. This methos always return "Method POST not allowed".

Parameters:
request - The request proper.
reply - The reply.
data - The parsed data content.
out - the output stream.
Throws: ProtocolException
If form data processing failed.
Throws: IOException
If an IO error occurs.
See Also:
URLDecoder
 o handle
 public Reply handle(Request request,
                     URLDecoder data) throws ProtocolException
Handle the form submission, after posted data parsing.

Parameters:
request - The request proper.
data - The parsed data content.
Throws: ProtocolException
If form data processing failed.
Overrides:
handle in class PostableFrame
See Also:
URLDecoder
 o get
 protected abstract void get(Request request,
                             Reply reply,
                             PageCompileOutputStream out) throws IOException
All java code extracted between and from the jhtml page will be put in this method body.

Parameters:
request - the incomming request.
reply - the reply.
out - the output stream.
Throws: IOException
if an IO error occurs.

All Packages  Class Hierarchy  This Package  Previous  Next  Index