Package org.wymiwyg.wrhapi.util.parameterparser

Examples of org.wymiwyg.wrhapi.util.parameterparser.MultiPartBody


   * @see org.wymiwyg.wrhapi.Handler#handle(org.wymiwyg.wrhapi.Request,
   *      org.wymiwyg.wrhapi.Response)
   */
  public void handle(Request request, Response response)
      throws HandlerException {
    MultiPartBody body = ParameterUtil.parseMultipart(request);
    final FormFile formFile = body.getFormFileParameterValues("file")[0];
    final String locationString = body.getTextParameterValues("location")[0];
    final Model editableModel = ModelFactory.createDefaultModel();
    final Resource infoBitResource = editableModel.createResource();
   
    infoBitResource.addProperty(DISCOBITS.mediaType, formFile
        .getMimeType().toString());
View Full Code Here

TOP

Related Classes of org.wymiwyg.wrhapi.util.parameterparser.MultiPartBody

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.