|
eWON JTK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.ewon.ewonitf.WebProducer
public class WebProducer
Constructor Summary | |
---|---|
WebProducer()
Creates a new instance of WebProducer |
Method Summary | |
---|---|
static String |
escapePath(String path)
This function returns a copy of a path string with anything other than "unreserved" and the forward-slash character percent-encoded according to the URI encoding rules. |
String |
getWebVar(String varName,
String defaultValue)
|
void |
produceAstPage(String astPageURL)
Send the content of the given web page URL (relative or absolute URL example: /usr/mytemplate.shtm), to to web client connected. |
void |
setEventHandler(int webEventHandler)
|
void |
setWebHeader(String mimeType)
|
void |
setWebVar(String varName,
String varValue)
|
static String |
unescapePath(String path)
This function returns a copy of a path that was encoded with the forward-slash character percent-encoded according to the URI encoding rules in an UNENCODED form. |
void |
write(byte[] b,
int off,
int len)
overrides the OutputStream function in order to go faster |
void |
write(int data)
Writes the specified byte to this output stream. |
Methods inherited from class java.io.OutputStream |
---|
close, flush, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebProducer()
Method Detail |
---|
public void setEventHandler(int webEventHandler)
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
b
- the data.off
- the start offset in the data.len
- the number of bytes to write.
IOException
- if an I/O error occurs. In particular,
an IOException
is thrown if the output
stream is closed.public void write(int data) throws IOException
OutputStream
write
is that one byte is written
to the output stream. The byte to be written is the eight
low-order bits of the argument b
. The 24
high-order bits of b
are ignored.
Subclasses of OutputStream
must provide an
implementation for this method.
write
in class OutputStream
data
- the byte
.
IOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void setWebHeader(String mimeType)
public void setWebVar(String varName, String varValue)
public String getWebVar(String varName, String defaultValue)
public static String escapePath(String path)
path
- The path to encode.
public static String unescapePath(String path)
path
- The path to decode.
OutOfMemory
- if unable to decode the path or memory problem.public void produceAstPage(String astPageURL)
DefaultEventHandler.setAstFormListenerThreadMode(true)
).
astPageURL
- this is the URL to the page that must be output.
|
eWON JTK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |