|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.webscarab.httpclient.URLFetcher
public class URLFetcher
Creates a new instance of URLFetcher
Constructor Summary | |
---|---|
URLFetcher()
Creates a new instance of URLFetcher |
Method Summary | |
---|---|
Response |
fetchResponse(Request request)
Can be used by a calling class to fetch a request without spawning an additional thread. |
Authenticator |
getAuthenticator()
|
void |
setAuthenticator(Authenticator authenticator)
|
void |
setHttpProxy(java.lang.String proxy,
int proxyport)
Tells URLFetcher which HTTP proxy to use, if any |
void |
setHttpsProxy(java.lang.String proxy,
int proxyport)
Tells URLFetcher which HTTPS proxy to use, if any |
void |
setNoProxy(java.lang.String[] noproxy)
Accepts an array of hostnames or domains for which no proxy should be used. |
void |
setSSLContextManager(SSLContextManager sslContextManager)
|
void |
setTimeouts(int connectTimeout,
int readTimeout)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLFetcher()
Method Detail |
---|
public void setHttpProxy(java.lang.String proxy, int proxyport)
proxy
- The address or name of the proxy server to use for HTTP requestsproxyport
- The port on the proxy server to connect topublic void setHttpsProxy(java.lang.String proxy, int proxyport)
proxy
- The address or name of the proxy server to use for HTTPS requestsproxyport
- The port on the proxy server to connect topublic void setNoProxy(java.lang.String[] noproxy)
noproxy
- An array of hosts or domains for which no proxy should be used.
Domains must start with a period (".")public void setSSLContextManager(SSLContextManager sslContextManager)
public void setTimeouts(int connectTimeout, int readTimeout)
public void setAuthenticator(Authenticator authenticator)
public Authenticator getAuthenticator()
public Response fetchResponse(Request request) throws java.io.IOException
fetchResponse
in interface HTTPClient
request
- the request to retrieve.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |