Package org.apache.aurora.gen

Examples of org.apache.aurora.gen.ResponseDetail


  private static Response appendMessage(Response response, String message) {
    String existingMessage = response.getMessageDEPRECATED();
    String prefix = Strings.isNullOrEmpty(existingMessage) ? "" : existingMessage + ", ";
    response.setMessageDEPRECATED(prefix + message);

    response.addToDetails(new ResponseDetail(message));
    return response;
  }
View Full Code Here


    return Util.emptyResponse()
        .setResponseCode(INVALID_REQUEST)
        .setDEPRECATEDversion(API_VERSION)
        .setServerInfo(SERVER_INFO)
        .setMessageDEPRECATED(message)
        .setDetails(ImmutableList.of(new ResponseDetail(message)));
  }
View Full Code Here

TOP

Related Classes of org.apache.aurora.gen.ResponseDetail

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.