Alternative way for drawing to the map

I have a problem with the graphhopper local server. I usually make a String out of a json route and call localhost:8989/route in my java opening a browser window to draw the route. Some of my routes are large enough to cause this error: WARN org.eclipse.jetty.http.HttpParser - Header is too large >8192. Is there a way of overcoming this?