public class Connection extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getError()
The error message if the connection could not be established.
|
String |
getMethod()
The request method used by the underlying HTTP request (e.g.
|
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()
public String getProtocol()
public String getError()
public String getMethod()
null if this is not an HTTP connection or the connection could not be established.public int getStatusCode()
public 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.
This doc was generated on 2017-08-03. Copyright © 2002-2017 RealObjects GmbH. All Rights Reserved.