com.supermap.services.rest.encoders

Class JsonpEncoder.JsonpRepresentation

  • java.lang.Object
    • StreamRepresentation
      • com.supermap.services.rest.encoders.JsonpEncoder.JsonpRepresentation
  • Enclosing class:
    JsonpEncoder


    public static class JsonpEncoder.JsonpRepresentation
    extends StreamRepresentation
    

    The JSONP format representation.

    • Constructor Summary

      Constructors 
      Constructor and Description
      JsonpEncoder.JsonpRepresentation(java.lang.Object innerValue, java.lang.String callBack, int statusCode, MediaType mediaType)
      The constructor that construct a WrapperRepresentation object according to JSON array and the name of the callback function.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.io.InputStream getStream() 
      void setStatusCode(int code) 
      void write(java.io.OutputStream paramOutputStream) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonpEncoder.JsonpRepresentation

        public JsonpEncoder.JsonpRepresentation(java.lang.Object innerValue,
                                        java.lang.String callBack,
                                        int statusCode,
                                        MediaType mediaType)
        

        The constructor that construct a WrapperRepresentation object according to JSON array and the name of the callback function.

        Parameters:
        jsonArray - The JSON array.
        callBack - The name of the callback function
    • Method Detail

      • setStatusCode

        public void setStatusCode(int code)
        
      • getStream

        public java.io.InputStream getStream()
                                      throws java.io.IOException
        
        Throws:
        java.io.IOException
      • write

        public void write(java.io.OutputStream paramOutputStream)
                   throws java.io.IOException
        
        Throws:
        java.io.IOException