play.mvc.Content

Here are the examples of the java api play.mvc.Content taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 Source : ResponseBodyHtml.java
with MIT License
from vangav

/**
 * setHtmlContent
 * alternative to overriding the method below
 *   setHtmlContent (Object... args)
 *   this method can be directly called instead
 * @param htmlContent
 * @throws Exception
 */
@JsonIgnore
final public void setHtmlContent(Content htmlContent) throws Exception {
    this.content = htmlContent;
}

18 Source : ResponseBodyHtml.java
with MIT License
from vangav

/**
 * @author mustapha
 * fb.com/mustapha.abdallah
 */
/**
 * ResponseBodyHtml represents the HTML type of a response body
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract clreplaced ResponseBodyHtml extends ResponseBody {

    @Override
    @JsonIgnore
    final protected ResponseType getType() {
        return ResponseType.HTML;
    }

    /**
     * content: response HTML content
     */
    @JsonIgnore
    private Content content;

    /**
     * setHtmlContent
     * alternative to overriding the method below
     *   setHtmlContent (Object... args)
     *   this method can be directly called instead
     * @param htmlContent
     * @throws Exception
     */
    @JsonIgnore
    final public void setHtmlContent(Content htmlContent) throws Exception {
        this.content = htmlContent;
    }

    @Override
    @JsonIgnore
    final protected Object getContent() throws Exception {
        return this.content;
    }
}