org.qtunes.webcontrol
Class HttpParser

java.lang.Object
  extended by org.qtunes.auth.control.JSONParser
      extended by org.qtunes.webcontrol.HttpParser
All Implemented Interfaces:
ParamParser

public class HttpParser
extends JSONParser

A ParamParser that takes its input in the form "object/method?key=value[&key=value...]&session=sessionid", ie the same way a request would typically be made via HTTP. Complex values are encoded as JSON, eg "object/method?array=[1,3,5,6]&map={'key':'value'}".


Field Summary
 
Fields inherited from class org.qtunes.auth.control.JSONParser
auth, context, json, method, object, params, session
 
Constructor Summary
HttpParser(ServiceContext context, String prefix)
           
 
Method Summary
 void parse(String in)
           
 
Methods inherited from class org.qtunes.auth.control.JSONParser
getMethodName, getObjectName, getParameters, getSession, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpParser

public HttpParser(ServiceContext context,
                  String prefix)
Method Detail

parse

public void parse(String in)
           throws Exception
Specified by:
parse in interface ParamParser
Overrides:
parse in class JSONParser
Throws:
Exception