|
||||||||||
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 java.lang.String |
COPYRIGHT
Deprecated. Copyright |
static java.lang.String |
HTTP_FILE_NOT_FOUND
Deprecated. message name |
static java.lang.String |
HTTP_FORBIDDEN
Deprecated. message name |
static java.lang.String |
HTTP_OK
Deprecated. message name |
static java.lang.String |
HTTP_REDIR
Deprecated. message name |
static java.lang.String |
PARAM_SYSTEM_TCP_BACKLOG
Deprecated. name of backlog parameter in global.properties.file |
static java.lang.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. |
java.lang.String |
getVersion()
Deprecated. |
void |
initialize(java.lang.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 java.lang.String COPYRIGHT
public static final java.lang.String PARAM_TCP_BACKLOG
public static final java.lang.String PARAM_SYSTEM_TCP_BACKLOG
public static final java.lang.String HTTP_OK
public static final java.lang.String HTTP_FILE_NOT_FOUND
public static final java.lang.String HTTP_FORBIDDEN
public static final java.lang.String HTTP_REDIR
Constructor Detail |
---|
@Deprecated public OldHTTPServer()
Method Detail |
---|
@Deprecated public void selectEntries() throws java.lang.Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
java.lang.Exception
- never@Deprecated public void terminate() throws java.lang.Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
java.lang.Exception
- if an error occurs.@Deprecated public void initialize(java.lang.Object o) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
o
- User provided parameter
java.lang.Exception
- if the initialization of this connector fails.@Deprecated public Entry getNextEntry() throws java.lang.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
java.lang.Exception
- if an error occurs.ConnectorInterface.selectEntries()
@Deprecated public void putEntry(Entry entry) throws java.lang.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
java.lang.Exception
- if an error occurs.@Deprecated public java.lang.String getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |