Package org.cometd.server
Class JettyJSONContextServer
- java.lang.Object
-
- org.cometd.common.JettyJSONContext<org.cometd.bayeux.server.ServerMessage.Mutable>
-
- org.cometd.server.JettyJSONContextServer
-
- All Implemented Interfaces:
org.cometd.common.JSONContext.Server
public class JettyJSONContextServer extends org.cometd.common.JettyJSONContext<org.cometd.bayeux.server.ServerMessage.Mutable> implements org.cometd.common.JSONContext.Server
-
-
Constructor Summary
Constructors Constructor Description JettyJSONContextServer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
generate(java.util.List<T> arg0)
java.lang.String
generate(T arg0)
org.cometd.common.JSONContext.Generator
getGenerator()
org.cometd.common.JSONContext.Parser
getParser()
protected org.cometd.bayeux.server.ServerMessage.Mutable
newRoot()
protected org.cometd.bayeux.server.ServerMessage.Mutable[]
newRootArray(int size)
T[]
parse(java.io.InputStream arg0)
T[]
parse(java.io.Reader arg0)
T[]
parse(java.lang.String arg0)
-
-
-
Method Detail
-
newRoot
protected org.cometd.bayeux.server.ServerMessage.Mutable newRoot()
- Specified by:
newRoot
in classorg.cometd.common.JettyJSONContext<org.cometd.bayeux.server.ServerMessage.Mutable>
-
newRootArray
protected org.cometd.bayeux.server.ServerMessage.Mutable[] newRootArray(int size)
- Specified by:
newRootArray
in classorg.cometd.common.JettyJSONContext<org.cometd.bayeux.server.ServerMessage.Mutable>
-
parse
public abstract T[] parse(java.io.InputStream arg0) throws java.text.ParseException
- Throws:
java.text.ParseException
-
parse
public abstract T[] parse(java.io.Reader arg0) throws java.text.ParseException
- Throws:
java.text.ParseException
-
parse
public abstract T[] parse(java.lang.String arg0) throws java.text.ParseException
- Throws:
java.text.ParseException
-
generate
public abstract java.lang.String generate(T arg0)
-
generate
public abstract java.lang.String generate(java.util.List<T> arg0)
-
getParser
public abstract org.cometd.common.JSONContext.Parser getParser()
-
getGenerator
public abstract org.cometd.common.JSONContext.Generator getGenerator()
-
-