Wednesday, 15 May 2013

Embedded Jetty 9: How to create a request to pass to RequestDispatcher from scratch? -



Embedded Jetty 9: How to create a request to pass to RequestDispatcher from scratch? -

i trying create , feed requests code (server initialization) jsps using jetty 9.2. warmup/precompilation other reasons. not have ongoing request (this happening @ startup) , avoid workarounds send requests using network.

problem face right next line (83) in jetty's dispatcher.java fails null pointer exception:

request baserequest=(request instanceof request)?((request)request):httpchannel.getcurrenthttpchannel().getrequest();

so, how 1 feed requests code-created requests embedded jetty? pleas help.

dispatcher requires valid request.

as dispatched phone call requires bunch of info request (such method, headers, content encodings, sort of response encodings valid, uri, context path, sessions, cookies, security contexts, principals, etc. list long)

jetty embedded-jetty

No comments:

Post a Comment