public class Connection
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
The duration in milliseconds how long this connection remained open.
|
java.lang.String |
getError()
The error message if the connection could not be established.
|
java.lang.String |
getMethod()
The request method used by the underlying HTTP request (e.g.
|
java.lang.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.
|
java.lang.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.
|
java.lang.String |
getUrl()
The URL.
|
boolean |
isConnected()
Whether a URL connection could be established by PDFreactor.
|
public java.lang.String getUrl()
public java.lang.String getProtocol()
public java.lang.String getError()
public java.lang.String getMethod()
null
if this is not an HTTP connection or the connection could not be established.public int getStatusCode()
public java.lang.String getStatusMessage()
null
if the response code is 0 or
the message could not be determined.public boolean isConnected()
false
,
see Connection.getError()
for details.public long getTimestamp()
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()
This doc was generated on 2018-08-13. Copyright © 2002-2018 RealObjects GmbH. All Rights Reserved.