com.profesorfalken.jwopr.mapper.WOPRResponseMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jWOPR Show documentation
Show all versions of jWOPR Show documentation
Simple Java API that interacts with AI providers
The newest version!
package com.profesorfalken.jwopr.mapper;
import com.profesorfalken.jwopr.response.WOPRResponse;
import javax.net.ssl.HttpsURLConnection;
import java.io.IOException;
/**
* Component that perform the mapping needed to build a {{@link WOPRResponse}} object from different sources
*
* @author Javier Garcia Alonso
*/
public interface WOPRResponseMapper {
WOPRResponse map(HttpsURLConnection connection) throws IOException;
WOPRResponse map(IOException ioException);
}