All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grails.plugin.json.view.test.JsonRenderResult.groovy Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
package grails.plugin.json.view.test

import groovy.transform.Canonical
import groovy.transform.CompileStatic
import org.springframework.http.HttpStatus

/**
 * A result object returned by {@link JsonViewTest}
 *
 * @author Graeme Rocher
 * @since 1.1
 */
@CompileStatic
@Canonical
class JsonRenderResult {
    /**
     * The status
     */
    HttpStatus status = HttpStatus.OK
    /**
     * The HTTP response message
     */
    String message = HttpStatus.OK.getReasonPhrase()
    /**
     * The content type
     */
    String contentType

    /**
     * The headers
     */
    Map headers = [:]
    /**
     * The JSON result
     */
    Object json
    /**
     * The raw JSON text
     */
    String jsonText
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy