com.ibm.di.connector
Class OldHTTPServer

java.lang.Object
  extended by com.ibm.di.connector.Connector
      extended by com.ibm.di.connector.OldHTTPServer
All Implemented Interfaces:
ConnectorInterface, VersionInfoInterface

Deprecated.

@Deprecated
public class OldHTTPServer
extends Connector

The Old HTTP Server Connector listens for incoming HTTP connections and returns the get parameters as an entry. If a Parser is specified then the Connectors process post requests and parse the contents using the specified Parser. get requests do not use the Parser. If a post request is received and no Parser is specified, the contents of the post data are returned as an attribute (postdata) in the returned entry.


Field Summary
protected static String COPYRIGHT
          Deprecated. Copyright
static String HTTP_FILE_NOT_FOUND
          Deprecated. message name
static String HTTP_FORBIDDEN
          Deprecated. message name
static String HTTP_OK
          Deprecated. message name
static String HTTP_REDIR
          Deprecated. message name
static String PARAM_SYSTEM_TCP_BACKLOG
          Deprecated. name of backlog parameter in global.properties.file
static String PARAM_TCP_BACKLOG
          Deprecated. name of backlog parameter
 
Fields inherited from class com.ibm.di.connector.Connector
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER
 
Constructor Summary
OldHTTPServer()
          Deprecated. 
 
Method Summary
 Entry getNextEntry()
          Deprecated. 
 String getVersion()
          Deprecated. 
 void initialize(Object o)
          Deprecated. 
 void putEntry(Entry entry)
          Deprecated. 
 void selectEntries()
          Deprecated. 
 void terminate()
          Deprecated. 
 
Methods inherited from class com.ibm.di.connector.Connector
addFindEntry, allModes, clearFindEntries, debug, debugMode, deleteEntry, findEntry, findEntry, getBoolean, getClassInstance, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getLog, getMaxDuplicateEntries, getModes, getModes, getName, getNextClient, getNextFindEntry, getParam, getParser, getProperty, getPushbackEntry, getRawConnectorConfiguration, getRSInterface, getUI, hasConfigValue, hasParser, initParser, isDeltaSupported, isExceptionFatal, isIOException, logError, logmsg, modEntry, modEntry, pushback, queryOperations, queryReply, querySchema, queryTables, reconnect, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setDebugMode, setLog, setMaxDuplicateEntries, setModes, setModes, setName, setParam, setParser, setProperty, setRSInterface, terminateServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

protected static final String COPYRIGHT
Deprecated. 
Copyright

See Also:
Constant Field Values

PARAM_TCP_BACKLOG

public static final String PARAM_TCP_BACKLOG
Deprecated. 
name of backlog parameter

See Also:
Constant Field Values

PARAM_SYSTEM_TCP_BACKLOG

public static final String PARAM_SYSTEM_TCP_BACKLOG
Deprecated. 
name of backlog parameter in global.properties.file

See Also:
Constant Field Values

HTTP_OK

public static final String HTTP_OK
Deprecated. 
message name

See Also:
Constant Field Values

HTTP_FILE_NOT_FOUND

public static final String HTTP_FILE_NOT_FOUND
Deprecated. 
message name

See Also:
Constant Field Values

HTTP_FORBIDDEN

public static final String HTTP_FORBIDDEN
Deprecated. 
message name

See Also:
Constant Field Values

HTTP_REDIR

public static final String HTTP_REDIR
Deprecated. 
message name

See Also:
Constant Field Values
Constructor Detail

OldHTTPServer

@Deprecated
public OldHTTPServer()
Deprecated. 

Class constructor

Method Detail

selectEntries

@Deprecated
public void selectEntries()
                   throws Exception
Deprecated. 

Default implementation

Specified by:
selectEntries in interface ConnectorInterface
Overrides:
selectEntries in class Connector
Throws:
Exception - never

terminate

@Deprecated
public void terminate()
               throws Exception
Deprecated. 

Terminate the connector. This function closes all connection and releases all resources used by the connector. This function also calls the parser's closeParser() method if a parser is active.

Specified by:
terminate in interface ConnectorInterface
Overrides:
terminate in class Connector
Throws:
Exception - if an error occurs.

initialize

@Deprecated
public void initialize(Object o)
                throws Exception
Deprecated. 

Initialize the connector. The connector may be passed a parameter of any kind by the user. It is up to the connector to determine whether this object can be used or not. The parameter is typically provided by a user script. When an AssemblyLine initializes it's Connectors, they are passed a ConnectorMode object.

Specified by:
initialize in interface ConnectorInterface
Overrides:
initialize in class Connector
Parameters:
o - User provided parameter
Throws:
Exception - if the initialization of this connector fails.

getNextEntry

@Deprecated
public Entry getNextEntry()
                   throws Exception
Deprecated. 

Returns the next Entry from the connector. The entry is populated with attributes and values from the next entry in the input set.

Example:

 var ctor = input.getConnector();
 var entry = ctor.getNextEntry();
 
 for (; entry != null; entry = ctor.getNextEntry()) {
        main.logmsg("Read entry...");
        main.dumpEntry(entry);
 }
 

Specified by:
getNextEntry in interface ConnectorInterface
Overrides:
getNextEntry in class Connector
Returns:
- the next Entry, or null if no more data
Throws:
Exception - if an error occurs.
See Also:
ConnectorInterface.selectEntries()

putEntry

@Deprecated
public void putEntry(Entry entry)
              throws Exception
Deprecated. 

Adds a new entry to the data source

Example:

 var ctor = write.getConnector();
 
 for (i = 0; i < 10; i++) {
        var entry = system.newEntry();
        entry.setAttribute("linenumber", i);
        entry.setAttribute("line", i + " line of text...");
 
        main.logmsg("Writes entry to output...");
        main.dumpEntry(entry);
        ctor.putEntry(entry);
 }
 

Specified by:
putEntry in interface ConnectorInterface
Overrides:
putEntry in class Connector
Parameters:
entry - The entry data to add
Throws:
Exception - if an error occurs.

getVersion

@Deprecated
public String getVersion()
Deprecated. 

Return version information

Returns:
version info