graphql.kickstart.servlet.ErrorQueryResponseWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-servlet-javax Show documentation
Show all versions of graphql-java-servlet-javax Show documentation
relay.js-compatible GraphQL servlet
The newest version!
package graphql.kickstart.servlet;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
class ErrorQueryResponseWriter implements QueryResponseWriter {
private final int statusCode;
private final String message;
@Override
public void write(HttpServletRequest request, HttpServletResponse response) throws IOException {
response.sendError(statusCode, message);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy