public class Connection extends Object
A type that describes a URL connection attempt of PDFreactor during a conversion.
Modifier and Type | Method and Description |
---|---|
boolean |
getCached()
Whether the response was retrieved from a cache.
|
long |
getDuration()
The duration in milliseconds how long this connection remained open.
|
String |
getError()
The error message if the connection could not be established.
|
String |
getMethod()
The request method used by the underlying HTTP request (like "GET", "POST", etc.) or
null if this is not an HTTP connection or the connection could not be established. |
String |
getProtocol()
The protocol of the URL connection.
|
Configuration.KeyValuePair[] |
getRequestHeaders()
The request headers.
|
Configuration.KeyValuePair[] |
getResponseHeaders()
The response headers.
|
int |
getStatusCode()
The response code for HTTP connections or 0 for all other connections.
|
String |
getStatusMessage()
The response message for the response code or
null if the response code is 0 or
the message could not be determined. |
long |
getTimestamp()
The time stamp of this connection.
|
String |
getUrl()
The URL.
|
boolean |
isConnected()
Whether a URL connection could be established by PDFreactor.
|
public String getUrl()
The URL.
public String getProtocol()
The protocol of the URL connection.
public String getError()
The error message if the connection could not be established.
public String getMethod()
The request method used by the underlying HTTP request (like "GET", "POST", etc.) or
null
if this is not an HTTP connection or the connection could not be established.
public int getStatusCode()
The response code for HTTP connections or 0 for all other connections.
public String getStatusMessage()
The response message for the response code or null
if the response code is 0 or
the message could not be determined.
public boolean isConnected()
Whether a URL connection could be established by PDFreactor. If this is false
,
see Connection.getError()
for details.
public long getTimestamp()
The time stamp of this connection.
public Configuration.KeyValuePair[] getRequestHeaders()
The request headers.
Note: If a header has multiple values, there will be one Configuration.KeyValuePair
for each value with the header name as key.
public Configuration.KeyValuePair[] getResponseHeaders()
The response headers.
Note: If a header has multiple values, there will be one Configuration.KeyValuePair
for each value with the header name as key.
public long getDuration()
The duration in milliseconds how long this connection remained open.
public boolean getCached()
Whether the response was retrieved from a cache.
This doc was generated on 2020-09-17. Copyright © 2002-2020 RealObjects GmbH. All Rights Reserved.