Class JsonpSupport

    • Method Detail

      • create

        public static JsonpSupport create()
        Provides a default instance for JSON-P readers and writers.
        Returns:
        json processing with default configuration
      • create

        public static JsonpSupport create​(Map<String,​?> jsonPConfig)
        Create an instance with the provided JSON-P configuration.
        Parameters:
        jsonPConfig - configuration of the processing library
        Returns:
        a configured JSON-P instance
      • builder

        public static JsonpSupport.Builder builder()
        Fluent API builder to create instances of JSON-P.
        Returns:
        a new builder instance
      • reader

        public static MessageBodyReader<javax.json.JsonStructure> reader()
        Return a default JSON-P entity reader.
        Returns:
        default JSON-P body reader instance
      • reader

        public static MessageBodyReader<javax.json.JsonStructure> reader​(javax.json.JsonReaderFactory readerFactory)
        Create a new JSON-P entity reader based on JsonReaderFactory.
        Parameters:
        readerFactory - json reader factory
        Returns:
        new JSON-P body reader instance
      • writer

        public static MessageBodyWriter<javax.json.JsonStructure> writer()
        Return a default JSON-P entity writer.
        Returns:
        default JSON-P body writer instance
      • writer

        public static MessageBodyWriter<javax.json.JsonStructure> writer​(javax.json.JsonWriterFactory writerFactory)
        Create a new JSON-P entity writer based on JsonWriterFactory.
        Parameters:
        writerFactory - json writer factory
        Returns:
        new JSON-P body writer instance
      • streamWriter

        public static MessageBodyStreamWriter<javax.json.JsonStructure> streamWriter()
        Return a default JSON-P entity stream writer.
        Returns:
        default JSON-P body stream writer instance
      • streamWriter

        public static MessageBodyStreamWriter<javax.json.JsonStructure> streamWriter​(javax.json.JsonWriterFactory writerFactory)
        Create a new JSON-P entity stream writer based on JsonWriterFactory.
        Parameters:
        writerFactory - json writer factory
        Returns:
        new JSON-P stream body writer instance
      • readerInstance

        public MessageBodyReader<javax.json.JsonStructure> readerInstance()
        Return JSON-P reader instance.
        Returns:
        JSON-P reader instance
      • writerInstance

        public MessageBodyWriter<javax.json.JsonStructure> writerInstance()
        Return JSON-P entity writer.
        Returns:
        JSON-P writer instance
      • streamWriterInstance

        public MessageBodyStreamWriter<javax.json.JsonStructure> streamWriterInstance()
        Return JSON-P stream writer.

        This stream writer supports publishers of JsonStructure (such as JsonObject), writing them as an array of JSONs.

        Returns:
        JSON processing stream writer.