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