
com.yahoo.parsec.clients.ParsecAsyncCompletionHandlerBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parsec-clients Show documentation
Show all versions of parsec-clients Show documentation
The Parsec Java Libraries.
// Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.parsec.clients;
import com.ning.http.client.AsyncCompletionHandler;
import javax.ws.rs.core.Response;
/**
* Simple AsyncHandler that returns {@link Response}.
*
* @author sho
*/
public class ParsecAsyncCompletionHandlerBase extends AsyncCompletionHandler {
@Override
public Response onCompleted(final com.ning.http.client.Response ningResponse) throws Exception {
return ParsecHttpUtil.getResponse(ningResponse);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy