Package com.opengamma.transport.jaxrs

Examples of com.opengamma.transport.jaxrs.FudgeFieldContainerBrowser


    }
    if (object instanceof Map<?, ?>) {
      return new DataConfigurationResource(getFudgeContext(), (Map<String, Object>) object);
    } else {
      final FudgeSerializer serializer = new FudgeSerializer(getFudgeContext());
      return new FudgeFieldContainerBrowser(serializer.objectToFudgeMsg(object));
    }
  }
View Full Code Here


    @Path("{portfolioId}")
    public FudgeFieldContainerBrowser portfolioOutputsByPortfolioId(@PathParam("portfolioId") String portfolioUid) {
      try {
        final AvailableOutputs outputs = _provider.getPortfolioOutputs(UniqueId.parse(portfolioUid), _instant, _maxNodes, _maxPositions);
        final FudgeSerializer serializer = new FudgeSerializer(_fudgeContext);
        return new FudgeFieldContainerBrowser(serializer.objectToFudgeMsg(outputs));
      } catch (DataNotFoundException e) {
        throw new WebApplicationException(Response.Status.NOT_FOUND);
      }
    }
View Full Code Here

TOP

Related Classes of com.opengamma.transport.jaxrs.FudgeFieldContainerBrowser

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.