org.scache
Class request
java.lang.Object
org.scache.request
- public final class request
- extends java.lang.Object
Method Summary |
void |
add_header(java.lang.String header)
|
void |
add_ims()
|
void |
add_ims(long when)
|
void |
addHost(java.lang.String hostname,
java.lang.String port)
|
void |
close()
|
WebConnection |
connectToHost()
|
void |
direct_request(boolean datafromclient)
|
java.lang.String |
getURL()
|
void |
handle_connect(boolean direct)
|
void |
handle_options()
|
void |
handle_trace()
|
void |
make_headers(int rc,
java.lang.String ctype,
java.lang.String enc,
java.lang.String loc,
int sz,
long lm,
long exp,
java.lang.String et)
|
void |
nocache()
|
static java.lang.String |
printDate(java.util.Date d)
|
void |
raw_send_request(WebConnection wc)
|
void |
read_headers(java.lang.String firstline,
WebConnection wc)
|
void |
removeOutgoingCookies()
|
void |
rewriteURL(java.lang.String newURL)
|
void |
run_request(WebConnection wc)
|
void |
send_error(int errorrc,
java.lang.String msg)
|
void |
send_headers()
|
void |
sendBytes(byte[] b)
|
void |
sendString(java.lang.String arg)
|
void |
setRequestTo(java.lang.String rq)
|
void |
setTarget(java.net.InetAddress proxyhost,
int proxyport)
|
void |
transfer_object(WebConnection wc,
java.io.OutputStream file,
cachedir dir)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GIF
public static byte[] GIF
GIF0
public static final byte[] GIF0
GIF1
public static final byte[] GIF1
qa_minlen
public static int qa_minlen
qa_maxlen
public static int qa_maxlen
qa_percent
public static float qa_percent
qa_maxtime
public static long qa_maxtime
wafer
public static java.lang.String wafer
proxyvia
public static boolean proxyvia
via_header
public static java.lang.String via_header
pnocache
public static char pnocache
read_timeout
public static int read_timeout
request_timeout
public static int request_timeout
cache_protected
public static boolean cache_protected
cache_private
public static boolean cache_private
cache_vary
public static boolean cache_vary
referer_hack
public static char referer_hack
default_forward_for
public static java.lang.String default_forward_for
remove_pragma_no_cache
public static boolean remove_pragma_no_cache
formatter
public static java.text.DateFormat formatter
fake_user_agent
public static java.lang.String fake_user_agent
fake_referer
public static java.lang.String fake_referer
maxbody
public static int maxbody
reqmaxbody
public static int reqmaxbody
maxcacheable
public static int maxcacheable
trace_request
public static boolean trace_request
trace_reply
public static boolean trace_reply
trace_abort
public static boolean trace_abort
trace_cookie
public static boolean trace_cookie
allow_all_session_cookies
public static boolean allow_all_session_cookies
dmachine_ctype_mask
public static regexp[] dmachine_ctype_mask
dmachine_ctype_min
public static int dmachine_ctype_min
URL
public java.lang.String URL
method
public int method
keepalive
public boolean keepalive
cacheable
public boolean cacheable
ims
public long ims
exp
public long exp
ctsize
public int ctsize
ctype
public java.lang.String ctype
location
public java.lang.String location
encoding
public java.lang.String encoding
etag
public java.lang.String etag
reload
public boolean reload
headers
public java.util.Vector headers
httprc
public int httprc
chunked
public boolean chunked
protocol
public java.lang.String protocol
hostname
public java.lang.String hostname
log_uagent
public java.lang.String log_uagent
log_referer
public java.lang.String log_referer
log_size
public int log_size
rewriteURL
public final void rewriteURL(java.lang.String newURL)
removeOutgoingCookies
public final void removeOutgoingCookies()
addHost
public final void addHost(java.lang.String hostname,
java.lang.String port)
getURL
public final java.lang.String getURL()
setTarget
public final void setTarget(java.net.InetAddress proxyhost,
int proxyport)
connectToHost
public final WebConnection connectToHost()
throws java.io.IOException
- Throws:
java.io.IOException
handle_connect
public final void handle_connect(boolean direct)
throws java.io.IOException
- Throws:
java.io.IOException
handle_options
public final void handle_options()
throws java.io.IOException
- Throws:
java.io.IOException
handle_trace
public final void handle_trace()
throws java.io.IOException
- Throws:
java.io.IOException
direct_request
public final void direct_request(boolean datafromclient)
throws java.io.IOException
- Throws:
java.io.IOException
run_request
public final void run_request(WebConnection wc)
throws java.io.IOException
- Throws:
java.io.IOException
raw_send_request
public final void raw_send_request(WebConnection wc)
throws java.io.IOException
- Throws:
java.io.IOException
close
public final void close()
throws java.io.IOException
- Throws:
java.io.IOException
read_headers
public final void read_headers(java.lang.String firstline,
WebConnection wc)
throws java.io.IOException
- Throws:
java.io.IOException
transfer_object
public final void transfer_object(WebConnection wc,
java.io.OutputStream file,
cachedir dir)
throws java.io.IOException
- Throws:
java.io.IOException
add_ims
public final void add_ims()
add_ims
public final void add_ims(long when)
add_header
public final void add_header(java.lang.String header)
send_headers
public final void send_headers()
make_headers
public final void make_headers(int rc,
java.lang.String ctype,
java.lang.String enc,
java.lang.String loc,
int sz,
long lm,
long exp,
java.lang.String et)
setRequestTo
public final void setRequestTo(java.lang.String rq)
send_error
public final void send_error(int errorrc,
java.lang.String msg)
throws java.io.IOException
- Throws:
java.io.IOException
printDate
public static final java.lang.String printDate(java.util.Date d)
nocache
public final void nocache()
sendString
public final void sendString(java.lang.String arg)
throws java.io.IOException
- Throws:
java.io.IOException
sendBytes
public final void sendBytes(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException