
org.johnnei.enjin.internal.RequestUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enjin-api-impl Show documentation
Show all versions of enjin-api-impl Show documentation
The specification of the Enjin API
The newest version!
package org.johnnei.enjin.internal;
import org.johnnei.enjin.EnjinProtocolException;
public class RequestUtils {
private RequestUtils() {
}
public static void verifyResponse(RequestWrapper> request, ResponseWrapper> response) {
if (request.getId() != response.getId()) {
throw new EnjinProtocolException("The ID of the response did not match the id of the request.");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy