Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ target/
.project
.settings
bin
.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void init() {
if (configuration.getResponseCacheManager() != null) {
this.requestHandler = new CachingHttpRequestHandlerImpl(configuration);
} else {
this.requestHandler = new HttpRequestHandlerImpl(configuration);
this.requestHandler = HttpRequestHandlerFactory.create(configuration);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public void handle(HttpServletRequest request, HttpServletResponse response) thr
}

protected void execute(GraphQLInvocationInput invocationInput, HttpServletRequest request,
HttpServletResponse response) {
try {
HttpServletResponse response) throws IOException {
GraphQLQueryResult queryResult = invoke(invocationInput, request, response);

QueryResponseWriter queryResponseWriter = createWriter(invocationInput, queryResult);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public CachingHttpRequestHandlerImpl(GraphQLConfiguration configuration) {

@Override
protected void execute(GraphQLInvocationInput invocationInput, HttpServletRequest request,
HttpServletResponse response) {
HttpServletResponse response) throws IOException {
// try to return value from cache if cache exists, otherwise processed the query
boolean returnedFromCache;

Expand Down