Package play.api.mvc

Examples of play.api.mvc.AnyContentAsXml


     * The <tt>Content-Type</tt> header of the request is set to <tt>application/xml</tt>.
     * @param xml the XML
     * @return the Fake Request
     */
    public FakeRequest withXmlBody(InputSource xml) {
        return withAnyContent(new AnyContentAsXml(scala.xml.XML.load(xml)), "application/xml", this.fake.getMethod());
    }
View Full Code Here

TOP

Related Classes of play.api.mvc.AnyContentAsXml

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.