Class DefaultRestResponse

  • All Implemented Interfaces:
    com.aspectran.core.activity.response.transform.CustomTransformer, RestResponse

    public class DefaultRestResponse
    extends AbstractRestResponse
    The default RestResponse supports APON, JSON, and XML data types.

    Created: 2019-06-16

    • Constructor Detail

      • DefaultRestResponse

        public DefaultRestResponse()
      • DefaultRestResponse

        public DefaultRestResponse​(java.lang.Object data)
      • DefaultRestResponse

        public DefaultRestResponse​(java.lang.String label,
                                   java.lang.Object data)
    • Method Detail

      • transform

        public void transform​(com.aspectran.core.activity.Activity activity)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • transformByContentType

        protected void transformByContentType​(com.aspectran.core.activity.Activity activity,
                                              java.lang.String encoding,
                                              MediaType contentType)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception