java.lang.Object | +--sdlip.examples.SwitchBoardLSP
This is an example application included in the SDLIP distribution.
Usage: java sdlip.examples.SwitchBoardLSP <port>
Implements a stateful LSP for the Web site switchboard.com. This LSP runs on a specified port and accepts a DAV:basicsearch query containing a DAV:contains operator. The query must contain a last name of the person to search for and may optionally be preceded by the person's first name. For every query, all available properties are returned which include the full name, address and phone number.
This LSP implements all currently defined SDLIP interfaces and methods. SwitchBoardLSP can be queried using the Client example application. It demonstrates the usage of RangeEnumerator and Timer utilities described in previous section. The LSP maintains state for maximum 10 minutes unless the extendStateTimeout method is called by the client.
void
getDocs(int serverSID,
int reqID,
XMLObject docPropList,
java.lang.String docsToGet,
XMLObject res)
void
search(int clientSID,
XMLObject subcollections,
XMLObject query,
int numDocs,
XMLObject docProps,
int stateTimeoutReq,
XMLObject queryOptions,
IntHolder expectedTotal,
IntHolder stateTimeout,
IntHolder serverSID,
XMLObject serverDelegate,
XMLObject result)
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait
public SwitchBoardLSP()
public void setDBG(DBG dbg)
public void search(int clientSID, XMLObject subcollections, XMLObject query, int numDocs, XMLObject docProps, int stateTimeoutReq, XMLObject queryOptions, IntHolder expectedTotal, IntHolder stateTimeout, IntHolder serverSID, XMLObject serverDelegate, XMLObject result) throws SDLIPException
public void timeout(java.lang.Object handle)
public void getInterface(XMLObject version) throws SDLIPException
public void getSubcollectionInfo(XMLObject subcolInfo) throws SDLIPException
public void getPropertyInfo(java.lang.String subcolName, XMLObject propInfo) throws SDLIPException
public void cancelRequest(int serverSID, int reqID) throws SDLIPException
public void getSessionInfo(int serverSID, IntHolder expectedTotal, IntHolder stateTimeout) throws SDLIPException
public void getDocs(int serverSID, int reqID, XMLObject docPropList, java.lang.String docsToGet, XMLObject res) throws SDLIPException
public void extendStateTimeout(int serverSID, int additionalTime, IntHolder timeAllotted) throws SDLIPException
public java.lang.String toString()
public static void main(java.lang.String[] args) throws java.lang.Exception