Package org.cometd.common
Interface JSONContext<T extends org.cometd.bayeux.Message.Mutable>
- All Known Subinterfaces:
JSONContext.Client
- All Known Implementing Classes:
JacksonJSONContextClient
,JettyJSONContextClient
public interface JSONContext<T extends org.cometd.bayeux.Message.Mutable>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
JSONContext.Client
static interface
JSONContext.Generator
static interface
JSONContext.Parser
-
Method Summary
Modifier and Type Method Description String
generate(List<T> messages)
String
generate(T message)
JSONContext.Generator
getGenerator()
JSONContext.Parser
getParser()
T[]
parse(InputStream stream)
T[]
parse(Reader reader)
T[]
parse(String json)
-
Method Details
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
generate
-
generate
-
getParser
JSONContext.Parser getParser() -
getGenerator
JSONContext.Generator getGenerator()
-