|
||||||||||
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.HTTPServerConnector
public class HTTPServerConnector
Field Summary | |
---|---|
static String |
ATTR_NAME_HTTP_AUTH_ENTRY
|
static String |
ATTR_NAME_HTTP_BODY
|
static String |
ATTR_NAME_HTTP_CHARACTER_SET
|
static String |
ATTR_NAME_HTTP_CONNECTION
|
static String |
ATTR_NAME_HTTP_CONTENT_TYPE
|
static String |
ATTR_NAME_HTTP_REMOTE_PASSWORD
|
static String |
ATTR_NAME_HTTP_REMOTE_USER
|
static String |
HTTP_BAD_REQUEST
|
static String |
PARAM_SYSTEM_TCP_BACKLOG
|
static String |
PARAM_TCP_BACKLOG
|
static String |
PARAMETER_AUTH_CONN
|
static String |
PARAMETER_AUTH_REALM
|
static String |
PARAMETER_CONTENT_TYPE
|
static String |
PARAMETER_HEADERS_AS_PROPS
|
static String |
PARAMETER_HTTP_BASIC_AUTH
|
static String |
PARAMETER_REQUIRE_CLIENT_AUTH
|
static String |
PARAMETER_TCP_DATA_AS_PROPS
|
static String |
PARAMETER_TCP_PORT
|
static String |
PARAMETER_USE_CHUNKS
|
static String |
PARAMETER_USE_SSL
|
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
HTTPServerConnector()
|
Method Summary | |
---|---|
ConnectorInterface |
getNextClient()
Server mode - return a clone of self that handles the next client instance when running in server mode. |
Entry |
getNextEntry()
Returns the next Entry from the connector. |
String |
getPassword()
|
HTTPServerConnector |
getServerConnector()
Returns the server connector if this connector is handling an LDAP client session. |
String |
getUserName()
|
String |
getVersion()
Return version information |
void |
initialize(Object aObject)
Initialize the connector. |
boolean |
isAccepting()
Returns true if this connector is currently waiting for a client connection. |
boolean |
isTerminating()
Returns true if this connector has the termination flag set. |
void |
putEntry(Entry aEntry)
Adds a new entry to the data source |
void |
rejectClientAuthentication()
|
void |
replyEntry(Entry aEntry)
Send a reply to the connector. |
void |
setProperty(Entry aEntry,
String aProperty,
Object aValue,
boolean aTcpDataAsProps)
|
void |
setServerConnector(HTTPServerConnector aServerConnector)
Sets the server connector for this connector. |
void |
terminate()
Terminate the connector. |
void |
terminateServer()
This method tries to terminate the server by setting the termination flag for the connector returned by getServerConnector and immediatly connecting to its port (which should fail). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.di.connector.ConnectorInterface |
---|
deleteEntry, findEntry, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, selectEntries, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface |
Field Detail |
---|
public static final String PARAMETER_TCP_PORT
public static final String PARAM_TCP_BACKLOG
public static final String PARAM_SYSTEM_TCP_BACKLOG
public static final String PARAMETER_HEADERS_AS_PROPS
public static final String PARAMETER_TCP_DATA_AS_PROPS
public static final String PARAMETER_AUTH_CONN
public static final String PARAMETER_HTTP_BASIC_AUTH
public static final String PARAMETER_AUTH_REALM
public static final String PARAMETER_USE_SSL
public static final String PARAMETER_REQUIRE_CLIENT_AUTH
public static final String PARAMETER_CONTENT_TYPE
public static final String PARAMETER_USE_CHUNKS
public static final String ATTR_NAME_HTTP_REMOTE_USER
public static final String ATTR_NAME_HTTP_REMOTE_PASSWORD
public static final String ATTR_NAME_HTTP_BODY
public static final String ATTR_NAME_HTTP_CONTENT_TYPE
public static final String ATTR_NAME_HTTP_CHARACTER_SET
public static final String ATTR_NAME_HTTP_CONNECTION
public static final String ATTR_NAME_HTTP_AUTH_ENTRY
public static final String HTTP_BAD_REQUEST
Constructor Detail |
---|
public HTTPServerConnector()
Method Detail |
---|
public void initialize(Object aObject) throws Exception
Connector
initialize
in interface ConnectorInterface
initialize
in class Connector
aObject
- User provided parameter
Exception
public ConnectorInterface getNextClient() throws Exception
Connector
getNextClient
in interface ConnectorInterface
getNextClient
in class Connector
Exception
public HTTPServerConnector getServerConnector()
public void setServerConnector(HTTPServerConnector aServerConnector)
public boolean isAccepting()
public boolean isTerminating()
public void terminateServer() throws Exception
terminateServer
in interface ConnectorInterface
terminateServer
in class Connector
Exception
public void terminate() throws Exception
Connector
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
public Entry getNextEntry() throws Exception
Connector
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
Connector.selectEntries()
public void putEntry(Entry aEntry) throws Exception
Connector
putEntry
in interface ConnectorInterface
putEntry
in class Connector
aEntry
- The entry data to add
Exception
- Any exceptions thrown by the connector's underlying classespublic void replyEntry(Entry aEntry) throws Exception
Connector
replyEntry
in interface ConnectorInterface
replyEntry
in class Connector
Exception
public String getUserName()
public String getPassword()
public void rejectClientAuthentication() throws Exception
Exception
public void setProperty(Entry aEntry, String aProperty, Object aValue, boolean aTcpDataAsProps)
public String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |