|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.OldHTTPServer
@Deprecated public class OldHTTPServer
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String COPYRIGHT
public static final String PARAM_TCP_BACKLOG
public static final String PARAM_SYSTEM_TCP_BACKLOG
public static final String HTTP_OK
public static final String HTTP_FILE_NOT_FOUND
public static final String HTTP_FORBIDDEN
public static final String HTTP_REDIR
Constructor Detail |
---|
@Deprecated public OldHTTPServer()
Method Detail |
---|
@Deprecated public void selectEntries() throws Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
Exception
- never@Deprecated public void terminate() throws Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
- if an error occurs.@Deprecated public void initialize(Object o) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
o
- User provided parameter
Exception
- if the initialization of this connector fails.@Deprecated public Entry getNextEntry() throws Exception
Example:
var ctor = input.getConnector(); var entry = ctor.getNextEntry(); for (; entry != null; entry = ctor.getNextEntry()) { main.logmsg("Read entry..."); main.dumpEntry(entry); }
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
- if an error occurs.ConnectorInterface.selectEntries()
@Deprecated public void putEntry(Entry entry) throws Exception
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); }
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- The entry data to add
Exception
- if an error occurs.@Deprecated public String getVersion()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |