|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object netcom.proxy.HandleXMLTask
Title: Handle XML Task
Description: Class which is a task to handle the parsing of XML into Requests, doing authentication, and sending Requests along their way
Copyright: Copyright (c) 2002
Company:
Constructor Summary | |
HandleXMLTask(java.util.Map outgoing_sockets,
java.net.Socket incoming_socket,
WrappedInputStream wrapped_in,
java.util.Map incoming_names,
java.util.Collection outside_connects,
LDAPCommunicator ldap_communicator,
Logger log,
Document doc,
java.util.Map object_streams,
java.util.Map return_streams)
Constructor, This takes a socket and a map of PServer to MDS sockets and handles tasks coming from the outside (e.g. |
|
HandleXMLTask(java.net.Socket new_socket,
java.util.Map outgoing_sockets,
java.util.Collection outside_connects,
java.util.Map incoming_names,
LDAPCommunicator ldap_communicator,
Logger log,
AddressPort inet_sock,
java.util.Map return_streams)
Constructor, This takes a new socket, a map of PServer to MDS sockets and a List of active sockets and handles tasks coming from the outside (e.g. |
Method Summary | |
boolean |
addNewUser(java.lang.String name,
java.lang.String password)
Method to talk with LDAP and add a new user |
void |
addPServerPipe(java.net.Socket in_socket)
method to create a new connection to a MDS node for a PServer |
int |
checkAuth(java.lang.String name,
java.lang.String password)
Method to check the authorization of a login and password |
NodeEntry |
getBestPClientMDS()
Method to find the best MDS according to PClient load-balancing criteria |
NodeEntry |
getBestPServerMDS()
Method to find the best MDS according to PServer load-balancing criteria |
boolean |
logout(java.lang.String type)
Method to handle a logout XML message(Element child |
void |
parseXML(java.io.BufferedInputStream xml_stream)
Major method to parse an XML stream (socket) and then call the appropriate other functions to handle the XML message. |
void |
parseXMLAuth()
PClients and PServers that are logged in get put in a list that is polled for xml data. |
void |
run()
Handles the XML requests from the outside |
void |
sendError(Document response_doc)
Method to send and Error back to an originating socket (PClient or PServer) |
void |
sendPServerRequest(AbstractRequest new_request)
Method to send a PServer request to a MDS node |
void |
sendSearchRequest(SearchRequest search_request)
Method to send a search request to a MDS node, ie open a socket, send, then drop it |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HandleXMLTask(java.util.Map outgoing_sockets, java.net.Socket incoming_socket, WrappedInputStream wrapped_in, java.util.Map incoming_names, java.util.Collection outside_connects, LDAPCommunicator ldap_communicator, Logger log, Document doc, java.util.Map object_streams, java.util.Map return_streams)
outgoing_sockets
- the map of PServer to MDSincoming_socket
- the socket that needs a task doneincoming_names
- the map of sockets connections to usernamesldap_communicator
- Handles communication with LDAP serverlog
- Logs eventspublic HandleXMLTask(java.net.Socket new_socket, java.util.Map outgoing_sockets, java.util.Collection outside_connects, java.util.Map incoming_names, LDAPCommunicator ldap_communicator, Logger log, AddressPort inet_sock, java.util.Map return_streams)
new_socket
- the socket that needs a task doneoutgoing_sockets
- the map of PServer to MDSoutside_connects
- List of active authenticated socketsincoming_names
- the map of sockets connections to usernamesldap_communicator
- Handles communication with LDAP serverlog
- Logs eventsinet_sock
- The socket address of the MDSProxy server socketMethod Detail |
public void run()
run
in interface java.lang.Runnable
public void parseXML(java.io.BufferedInputStream xml_stream)
xml_stream
- the icoming socket's input streampublic void parseXMLAuth()
public int checkAuth(java.lang.String name, java.lang.String password)
public boolean addNewUser(java.lang.String name, java.lang.String password)
public boolean logout(java.lang.String type)
public NodeEntry getBestPClientMDS()
public NodeEntry getBestPServerMDS()
public void addPServerPipe(java.net.Socket in_socket)
public void sendPServerRequest(AbstractRequest new_request)
public void sendError(Document response_doc)
public void sendSearchRequest(SearchRequest search_request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |