org.qtunes.auth.control
Class SimpleParser

java.lang.Object
  extended by org.qtunes.auth.control.SimpleParser
All Implemented Interfaces:
ParamParser

public abstract class SimpleParser
extends java.lang.Object
implements ParamParser

A ParamParser suitable for interactive use. Requests are made as you would invoke a method in JavaScript, eg "Player.addTrack(3)" or "db.getField(1, 'Title')". Responses are formatted as plain text.


Constructor Summary
SimpleParser()
           
 
Method Summary
 java.util.List<Call> getMethodCalls()
          Get the name of the ControlMethod we want to invoke
 java.lang.String getObjectName()
          Get the name of the Object we want to invoke the method on
abstract  Session getSession()
          Get the Session that was specified in the Parameters
 void parse(java.lang.String in)
           
 java.lang.String toString(java.lang.Object o)
          Convert the specified Object to a String in a form that would be usable by this ParamParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleParser

public SimpleParser()
Method Detail

parse

public void parse(java.lang.String in)
           throws java.lang.Exception
Specified by:
parse in interface ParamParser
Throws:
java.lang.Exception

getObjectName

public java.lang.String getObjectName()
Description copied from interface: ParamParser
Get the name of the Object we want to invoke the method on

Specified by:
getObjectName in interface ParamParser

getMethodCalls

public java.util.List<Call> getMethodCalls()
Description copied from interface: ParamParser
Get the name of the ControlMethod we want to invoke

Specified by:
getMethodCalls in interface ParamParser

getSession

public abstract Session getSession()
Description copied from interface: ParamParser
Get the Session that was specified in the Parameters

Specified by:
getSession in interface ParamParser

toString

public java.lang.String toString(java.lang.Object o)
Description copied from interface: ParamParser
Convert the specified Object to a String in a form that would be usable by this ParamParser

Specified by:
toString in interface ParamParser