2008-09-10 1.1.0

org.eclipse.soda.dk.url.connection
Class UrlConnection

java.lang.Object
  extended by org.eclipse.soda.dk.core.EscObject
      extended by org.eclipse.soda.dk.connection.Connection
          extended by org.eclipse.soda.dk.connection.StreamConnection
              extended by org.eclipse.soda.dk.url.connection.UrlConnection
All Implemented Interfaces:
ConnectionService, UrlConnectionService

public class UrlConnection
extends StreamConnection
implements ConnectionService, UrlConnectionService

Uniform Resource Locator (URL) Connection. The UrlConnection class implements the UrlConnectionService and provides the controls for the connection.

The list of exported services:

Version:
1.1.0
See Also:
UrlConnectionService, ConnectionService

Field Summary
static java.lang.String CLASS_NAME
          Defines the full class name.
protected static char[] TOSTRING_NAME
          Define the tostring name (char[]) constant.
 
Fields inherited from class org.eclipse.soda.dk.connection.Connection
CHANNEL_ACTIVE_STATE_RESOURCE, CHANNEL_ALIVE_STATE_RESOURCE, CHANNEL_CLOSED_RESOURCE, CHANNEL_CONNECTED_STATE_RESOURCE, CHANNEL_CREATED_STATE_RESOURCE, CHANNEL_DEAD_STATE_RESOURCE, CHANNEL_OPEN, CHANNEL_OPENFAILED_RESOURCE, CHANNEL_READ_BYTES_RESOURCE, CHANNEL_STARTED_STATE_RESOURCE, CHANNEL_WRITE_BYTES_RESOURCE, CLIENT_WAIT_RESOURCE, CLOSE_RESOURCE, CLOSED_RESOURCE, configurationService, logLevel, OPEN_RESOURCE, OPENFAILED_RESOURCE, READ_BYTES_RESOURCE, readByteCount, WRITE_BYTES_RESOURCE, writeByteCount
 
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, ID_NAME_KEY, INTEGER_TABLE, INTEGER_TABLE_SIZE, KEY_KEY, LOG_DEBUG, LOG_DEFAULT, LOG_ERROR, LOG_INFO, LOG_LEVEL_KEY, LOG_TRACE, LOG_WARNING, LONG_TABLE, LONG_TABLE_SIZE, PREFIX_KEY, READONLY_EMPTY_COLLECTION, READONLY_EMPTY_LIST, READONLY_EMPTY_MAP, 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, Unmodifiable
 
Fields inherited from interface org.eclipse.soda.dk.url.connection.service.UrlConnectionService
CONNECTION_TYPE, DEFAULT_URL, FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, SERVICE_DESCRIPTION, SERVICE_NAME, URL, URL_DEFAULT, URL_KEY, UrlConnection
 
Constructor Summary
UrlConnection(ConfigurationService configuration)
          Constructs an instance of this class from the specified configuration parameter.
UrlConnection(java.util.Dictionary properties)
           
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.connection.StreamConnection
flush, getInputStream, getOutputStream, read, read, setInputStream, setOutputStream, write, write
 
Methods inherited from class org.eclipse.soda.dk.connection.Connection
attemptRecoveryFromError, exit, finalize, getConfigurationService, getDefaultResource, getErrorSeverity, getLogDetails4, getLogDetails5, getLogLevel, getReadByteCount, getResource, getWriteByteCount, isOpen, setConfigurationInformation, setConfigurationService, setLogLevel, setOpen, setReadByteCount, setWriteByteCount, toStringInfo, updateReadByteCount, updateWriteByteCount
 
Methods inherited from class org.eclipse.soda.dk.core.EscObject
createDefaultLogService, createException, createException, createInteger, createIntegerTable, createLong, createLongTable, createNumber, format, getBoolean, getCurrentTimestamp, getDefaultLogService, getFloat, getId, getIdName, getInt, getLoadLibraryName, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails2, getLogDetails3, getLogDetails6, getLogDetails7, getLogService, getLong, getObject, getOutputName, getReadOnlyEmptyCollection, getReadOnlyEmptyList, getReadOnlyEmptyMap, getSimpleClassName, getStaticBoolean, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticString, getString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleError, handleErrorInternal, handleStaticError, handleStaticException, isBackward, isDebug, isLogging, isTrace, isUnmodifiable, loadService, log, log, log, report, report, report, report, report, report, reportError, reportSystemInfo, setBackward, setDebug, setDefaultLogService, setLogService, setTraceLevel, setUnmodifiable, shouldLog, sleep, startupEscStatic, toStringConfigurationKeys
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the full class name.

See Also:
Constant Field Values

TOSTRING_NAME

protected static final char[] TOSTRING_NAME
Define the tostring name (char[]) constant.

Constructor Detail

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)

UrlConnection

public UrlConnection(java.util.Dictionary properties)
Parameters:
properties - The properties (Dictionary) parameter.
See Also:
UrlConnection(String), UrlConnection(ConfigurationService)

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)
Method Detail

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 - 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 - 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)

2008-09-10 1.1.0

Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.4.0.v20080605-1900