Java源码示例:org.subsonic.restapi.ResponseStatus

示例1
public Response createResponse(boolean ok) {
    Response response = new ObjectFactory().createResponse();
    response.setStatus(ok ? ResponseStatus.OK : ResponseStatus.FAILED);
    response.setVersion(restProtocolVersion);
    return response;
}
 
示例2
public Response createResponse(boolean ok) {
    Response response = new ObjectFactory().createResponse();
    response.setStatus(ok ? ResponseStatus.OK : ResponseStatus.FAILED);
    response.setVersion(restProtocolVersion);
    return response;
}
 
示例3
public Response createResponse(boolean ok) {
    Response response = new ObjectFactory().createResponse();
    response.setStatus(ok ? ResponseStatus.OK : ResponseStatus.FAILED);
    response.setVersion(restProtocolVersion);
    return response;
}