org.eclipse.soda.dk.url.connection
Class UrlConnection
java.lang.Object
org.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.connection.Connection
org.eclipse.soda.dk.connection.StreamConnection
org.eclipse.soda.dk.url.connection.UrlConnection
- All Implemented Interfaces:
- ConnectionService, UrlConnectionService
public class UrlConnection
- extends StreamConnection
- implements UrlConnectionService, ConnectionService
The UrlConnection class implements the ConnectionService interface.
- Version:
- 1.0.0
- See Also:
ConnectionService,
String,
URLConnection
|
Field Summary |
protected static char[] |
TOSTRING_NAME
Define the tostring name (char[]) constant. |
| Fields inherited from class org.eclipse.soda.dk.core.EscObject |
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
|
Constructor Summary |
UrlConnection(ConfigurationService configuration)
Constructs an instance of this class from the specified configuration
parameter. |
UrlConnection(java.util.Dictionary properties)
Constructs an instance of this class from the specified properties
parameter. |
UrlConnection(java.lang.String name)
Constructs an UrlConnection object using the input
parameter(s). |
|
Method Summary |
void |
close()
Close the URL connection. |
void |
open()
Open the URL connection. |
java.lang.String |
toString()
Returns the string value. |
| Methods inherited from class org.eclipse.soda.dk.core.EscObject |
createDefaultLogService, createException, createException, createInteger, createIntegerTable, createNumber, format, getBoolean, getCurrentTimestamp, getDefaultLogService, getFloat, getInt, getLoadLibraryName, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails2, getLogDetails3, getLogDetails4, getLogDetails5, getLogDetails6, getLogDetails7, getLogService, getLong, getObject, getOutputName, getSimpleClassName, getStaticBoolean, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticString, getString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleStaticError, handleStaticException, isDebug, isTrace, loadService, log, log, report, report, report, report, report, report, reportError, reportSystemInfo, setDebug, setDefaultLogService, setLogService, setTraceLevel, shouldLog, sleep, startupEscStatic, toStringConfigurationKeys, toStringInfo |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TOSTRING_NAME
protected static final char[] TOSTRING_NAME
- Define the tostring name (char[]) constant.
UrlConnection
public UrlConnection(java.lang.String name)
- Constructs an
UrlConnection object using the input
parameter(s).
java.lang.String
- Parameters:
name - The name (String) parameter.- See Also:
UrlConnection(Dictionary),
UrlConnection(ConfigurationService)
UrlConnection
public UrlConnection(java.util.Dictionary properties)
- Constructs an instance of this class from the specified properties
parameter.
The properties (
Dictionary) parameter.
- Parameters:
properties - The properties (Dictionary) parameter.- See Also:
UrlConnection(String),
UrlConnection(ConfigurationService)
UrlConnection
public UrlConnection(ConfigurationService configuration)
- Constructs an instance of this class from the specified configuration
parameter.
The configuration (
ConfigurationService)
parameter.
- Parameters:
configuration - The configuration (ConfigurationService) parameter.- See Also:
UrlConnection(String),
UrlConnection(Dictionary)
close
public void close()
throws java.io.IOException
- Close the URL connection.
- Specified by:
close in interface ConnectionService- Overrides:
close in class StreamConnection
- Throws:
java.io.IOException- See Also:
ConnectionService.close()
open
public void open()
throws java.io.IOException
- Open the URL connection.
href="java.io.IOException.html">IOException Thrown if
the IOException exception condition occurs.
- Specified by:
open in interface ConnectionService- Overrides:
open in class Connection
- Throws:
java.io.IOException- See Also:
ConnectionService.open()
toString
public java.lang.String toString()
- Returns the string value.
- Overrides:
toString in class EscObject
- Returns:
- The string (
String) value. - See Also:
EscObject.getStaticString(String,String),
EscObject.getString(String,String)
Copyright (c) 1999, 2007 IBM