Package com.linkedin.restli.common

Examples of com.linkedin.restli.common.HttpStatus


  @Override
  public AugmentedRestLiResponseData buildRestLiResponseData(RestRequest request, RoutingResult routingResult,
                                                             Object result, Map<String, String> headers)
  {
    final RecordTemplate record;
    final HttpStatus status;
    if (result instanceof GetResult)
    {
      final GetResult<?> getResult = (GetResult<?>) result;
      record = getResult.getValue();
      status = getResult.getStatus();
View Full Code Here


                                                            RoutingResult routingResult,
                                                            Object result,
                                                            Map<String, String> headers)
  {
    final Object value;
    final HttpStatus status;
    if (result instanceof ActionResult)
    {
      final ActionResult<?> actionResult = (ActionResult<?>) result;
      value = actionResult.getValue();
      status = actionResult.getStatus();
View Full Code Here

public class TestUpdateResponseBuilder
{
  @Test
  public void testBuilder()
  {
    HttpStatus status = HttpStatus.S_200_OK;
    UpdateResponse updateResponse = new UpdateResponse(status);
    Map<String, String> headers = buildHeaders();

    ResourceMethodDescriptor mockDescriptor = getMockResourceMethodDescriptor();
    RoutingResult routingResult = new RoutingResult(null, mockDescriptor);
View Full Code Here

      return null;
    }
    else
    {
      //Return a valid CreateResponse but with a null HttpStatus
      final HttpStatus nullStatus = null;
      return new CreateResponse(nullStatus);
    }
    //Note, we don't need a test for returning a null entityID
  }
View Full Code Here

TOP

Related Classes of com.linkedin.restli.common.HttpStatus

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.