wttools.protocols.http
Class HTTPOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--wttools.protocols.http.HTTPOutputStream
- public class HTTPOutputStream
- extends java.io.FilterOutputStream
HTTPOutputStream.java
Created: Mon Sep 17 16:37:47 2001
- Version:
- $Revision: 1.3 $
- Author:
- Artur Hefczyc
Field Summary |
protected boolean |
debug
variable debug contains value of |
protected java.lang.String |
host
Describe variable host here. |
protected boolean |
keepAlive
Describe variable keepAlive here. |
protected java.lang.String |
userAgent
Describe variable userAgent here. |
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary |
HTTPOutputStream(java.io.OutputStream in,
java.lang.String h,
boolean keep_alive,
java.lang.String user_agent)
Creates a new HTTPOutputStream instance. |
Method Summary |
protected void |
deb(java.lang.String str)
deb method performs |
boolean |
isDebug()
Get the value of debug. |
protected void |
raw(java.lang.String str)
raw method performs |
void |
requestForData(java.lang.String page)
requestForData method performs |
void |
requestForHeaders(java.lang.String page)
requestForHeaders method performs |
void |
sendRequest(java.lang.String method,
java.lang.String page)
sendRequest method performs |
void |
setDebug(boolean v)
Set the value of debug. |
Methods inherited from class java.io.FilterOutputStream |
close, flush, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
protected boolean debug
- variable
debug
contains value of
host
protected java.lang.String host
- Describe variable
host
here.
keepAlive
protected boolean keepAlive
- Describe variable
keepAlive
here.
userAgent
protected java.lang.String userAgent
- Describe variable
userAgent
here.
HTTPOutputStream
public HTTPOutputStream(java.io.OutputStream in,
java.lang.String h,
boolean keep_alive,
java.lang.String user_agent)
- Creates a new
HTTPOutputStream
instance.
- Parameters:
in
- an OutputStream
valueh
- a String
valuekeep_alive
- a boolean
valueuser_agent
- a String
value
isDebug
public boolean isDebug()
- Get the value of debug.
- Returns:
- value of debug.
setDebug
public void setDebug(boolean v)
- Set the value of debug.
- Parameters:
v
- Value to assign to debug.
requestForHeaders
public void requestForHeaders(java.lang.String page)
throws java.io.IOException
requestForHeaders
method performs
- Parameters:
page
- a String
value- Throws:
java.io.IOException
- if an error occurs
requestForData
public void requestForData(java.lang.String page)
throws java.io.IOException
requestForData
method performs
- Parameters:
page
- a String
value- Throws:
java.io.IOException
- if an error occurs
sendRequest
public void sendRequest(java.lang.String method,
java.lang.String page)
throws java.io.IOException
sendRequest
method performs
- Parameters:
method
- a String
valuepage
- a String
value- Throws:
java.io.IOException
- if an error occurs
deb
protected void deb(java.lang.String str)
deb
method performs
- Parameters:
str
- a String
value
raw
protected void raw(java.lang.String str)
raw
method performs
- Parameters:
str
- a String
value
Copyright © GNU, wttools developers Team.