Package com.opengamma.component.rest

Examples of com.opengamma.component.rest.RestComponents


   * Registers the basic RESTful helpers.
   *
   * @param repo  the component repository, not null
   */
  protected void registerJettyRestBasics(ComponentRepository repo) {
    RestComponents restComponents = repo.getRestComponents();
    restComponents.publishHelper(new FudgeObjectJSONConsumer());
    restComponents.publishHelper(new FudgeObjectJSONProducer());
    restComponents.publishHelper(new FudgeObjectXMLConsumer());
    restComponents.publishHelper(new FudgeObjectXMLProducer());
    restComponents.publishHelper(new FudgeObjectBinaryConsumer());
    restComponents.publishHelper(new FudgeObjectBinaryProducer());
    restComponents.publishHelper(new DataNotFoundExceptionMapper());
    restComponents.publishHelper(new DataDuplicationExceptionMapper());
    restComponents.publishHelper(new IllegalArgumentExceptionMapper());
    restComponents.publishHelper(new UnsupportedOperationExceptionMapper());
    restComponents.publishHelper(new WebApplicationExceptionMapper());
    restComponents.publishHelper(new ThrowableExceptionMapper());
  }
View Full Code Here

TOP

Related Classes of com.opengamma.component.rest.RestComponents

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.