public class RequestProxy extends Object
HttpRequest
implementation will be triggered due to the
given URL and the flag if external http resources are allowed.Constructor and Description |
---|
RequestProxy(UserAgentContext context,
Proxy proxy,
StreamResolver resolver,
boolean isAllowHTTPResources,
WorkerController<?> controller) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
void |
addReadyStateChangeListener(ReadyStateChangeListener listener) |
String |
getAllResponseHeaders() |
int |
getReadyState() |
URL |
getRequestURL() |
byte[] |
getResponseBytes() |
String |
getResponseHeader(String headerName) |
BufferedImage |
getResponseImage() |
String |
getResponseText() |
Document |
getResponseXML() |
int |
getStatus() |
String |
getStatusText() |
void |
open(String method,
String url) |
void |
open(String method,
String url,
boolean asyncFlag) |
void |
open(String method,
URL url) |
void |
open(String method,
URL url,
boolean asyncFlag) |
void |
open(String method,
URL url,
boolean asyncFlag,
String userName) |
void |
open(String method,
URL url,
boolean asyncFlag,
String userName,
String password) |
void |
send(String content) |
public RequestProxy(UserAgentContext context, Proxy proxy, StreamResolver resolver, boolean isAllowHTTPResources, WorkerController<?> controller)
public void open(String method, URL url, boolean asyncFlag, String userName, String password) throws IOException
IOException
public void abort()
public void addReadyStateChangeListener(ReadyStateChangeListener listener)
public String getAllResponseHeaders()
public int getReadyState()
public byte[] getResponseBytes()
public BufferedImage getResponseImage()
public String getResponseText()
public Document getResponseXML()
public int getStatus()
public String getStatusText()
public void open(String method, String url) throws IOException
IOException
public void open(String method, URL url) throws IOException
IOException
public void open(String method, URL url, boolean asyncFlag) throws IOException
IOException
public void open(String method, String url, boolean asyncFlag) throws IOException
IOException
public void open(String method, URL url, boolean asyncFlag, String userName) throws IOException
IOException
public void send(String content) throws IOException
IOException
public URL getRequestURL()
Copyright © 2017 levigo holding gmbh. All rights reserved.