Package no.kommune.bergen.soa.svarut.dto

Examples of no.kommune.bergen.soa.svarut.dto.DokumentRs


  public DokumentRs retrieveContent( UserContext userContext, String id ) {
    try {
      InputStream inputStream = serviceDelegate.retrieveContent( id, JuridiskEnhetFactory.create( userContext ) );
      InputStreamDataSource dataSource = new InputStreamDataSource( inputStream, "application/pdf", id );
      DataHandler dataHandler = new DataHandler( dataSource );
      DokumentRs rs = new DokumentRs();
      rs.setFilnavn( id );
      rs.setData( dataHandler );
      return rs;
    } catch (Exception e) {
      throw ServiceDelegateImpl.handleException( e );
    }
  }
View Full Code Here

TOP

Related Classes of no.kommune.bergen.soa.svarut.dto.DokumentRs

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.