sdlip.examples
Class ClientApp

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--sdlip.examples.ClientApp

public class ClientApp
extends java.applet.Applet

This is an example application included in the SDLIP distribution.

Usage: java sdlip.examples.Client <URL_or_IOR> <method> ...method parameters...

Allows to invoke all methods defined in the Search and ResultAccess interfaces on an LSP using a command line tool. The <method> parameter corresponds to the name of the method to be invoked. Following methods are supported:

   search              <clientSID> <queryStr> <numDocs> <stateTimeoutReq>
   getSessionInfo      <serverSID>
   getDocs             <serverSID> <reqID> <docsToGet>
   extendStateTimeout  <serverSID> <additionalTime>
   cancelRequest       <serverSID> <reqID>
 

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
ClientApp()
           
 
Method Summary
 java.lang.String cancelRequest(sdlip.examples.JSObject win, java.lang.String url, java.lang.String SID, java.lang.String reqID)
           
 java.lang.String discoverMetadata(sdlip.examples.JSObject win, java.lang.String url)
           
 java.lang.String extendStateTimeout(sdlip.examples.JSObject win, java.lang.String url, java.lang.String SID, java.lang.String addTime)
           
 java.lang.String getDocs(sdlip.examples.JSObject win, java.lang.String url, java.lang.String sid, java.lang.String reqID, java.lang.String docsToGet)
           
 java.lang.String getSessionInfo(sdlip.examples.JSObject win, java.lang.String url, java.lang.String SID)
           
 java.lang.String getSID()
           
 void init()
           
 java.lang.String search(sdlip.examples.JSObject win, java.lang.String url, java.lang.String query, java.lang.String limit, java.lang.String timeoutReq)
           
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientApp

public ClientApp()
Method Detail

init

public void init()
Overrides:
init in class java.applet.Applet

getSID

public java.lang.String getSID()

search

public java.lang.String search(sdlip.examples.JSObject win,
                               java.lang.String url,
                               java.lang.String query,
                               java.lang.String limit,
                               java.lang.String timeoutReq)

getDocs

public java.lang.String getDocs(sdlip.examples.JSObject win,
                                java.lang.String url,
                                java.lang.String sid,
                                java.lang.String reqID,
                                java.lang.String docsToGet)

discoverMetadata

public java.lang.String discoverMetadata(sdlip.examples.JSObject win,
                                         java.lang.String url)

getSessionInfo

public java.lang.String getSessionInfo(sdlip.examples.JSObject win,
                                       java.lang.String url,
                                       java.lang.String SID)

extendStateTimeout

public java.lang.String extendStateTimeout(sdlip.examples.JSObject win,
                                           java.lang.String url,
                                           java.lang.String SID,
                                           java.lang.String addTime)

cancelRequest

public java.lang.String cancelRequest(sdlip.examples.JSObject win,
                                      java.lang.String url,
                                      java.lang.String SID,
                                      java.lang.String reqID)