Questions tagged [requesthandler]

104 questions
2
votes
1 answer

How to receive php response array using HTTP-reponse-handler

In my new android program i need to send one request to a PHP page and receive a response as an array. For that i have created a class that contains http request and response functionality. It will send request and receive some response but i cannot…
Hybrid Developer
  • 2,320
  • 1
  • 34
  • 55
2
votes
2 answers

RestEasy open html/jsp page

There is a RestEasy method, which handles @GET requests. How is it possible to open a jsp/html page from that method? @GET @Path("/") public void getMainPage(){ //... }
user1588782
  • 293
  • 1
  • 4
  • 6
2
votes
2 answers

Is using the RequestHandlerComponent in a model possible?

I'm new to PHP and decided to use the cakePHP framework to help me get started. I can't figure out one thing though, I want to call methods on the RequestHandlerComponent class to update a users last used IP address and other information, I figured…
Brandon
  • 68,708
  • 30
  • 194
  • 223
1
vote
1 answer

Handling GAE BlobStore Exception via webapp2 handler

I have been banging my head around on this issue for a bit and have not come up with a solution. I am attempting to trap the exception UploadEntityTooLargeEntity. This exception is raised by GAE when 2 things happen. Set the max_bytes_total param…
mozart27
  • 336
  • 3
  • 5
1
vote
1 answer

Class not found exception while adding custom request handler to solr

I have to write my own custom request handler in solr but i am getting error like org.apache.solr.common.SolrException: Error loading class 'QPRequestHandler' Here QPRequestHandler is my custom handler that i want to plug into my SOLR 3.4 Here is…
1
vote
1 answer

How to perform request coalescing with .net middleware

Firstly, I know there are options for request coalescing, like using an Origin Shield, Varnish, etc. But those are architectural changes and I was looking for something more straight forward. My thought was to use some middleware that would first…
1
vote
0 answers

Property 'catch' does not exist on type 'void'

I would like to do catchAsync1 but getting Error Property 'catch' does not exist on type 'void' and would like to know catchAsync3 and catchAsync2 are correct in typescript import { NextFunction, Request, RequestHandler, Response } from…
1
vote
1 answer

Spring's messageResource implicitly localized from Session - not having to pass Locale reference

I'm wondering, what is the best way of having something like prototype of messageResource (could be singleton too I guess) created for each request and populated with request's Locale or Locale gotten from User object in the session. So that one…
lisak
  • 21,611
  • 40
  • 152
  • 243
1
vote
1 answer

Using in Django

When someone clicks Submit after selecting a file with the element, how do I access the contents of the file in Django? (It seems like the request sent to the request handler has no trace of the file anywhere -- not even in…
user541686
  • 205,094
  • 128
  • 528
  • 886
1
vote
0 answers

configure dismax requesthandlar for boost a field

I want to apply boost for searching. i want that if a query term occur both in description,name than docs having query term in description field come high in search results. for this i configure dismax request handler as:
Romi
  • 4,833
  • 28
  • 81
  • 113
1
vote
1 answer

Can't achieve RequestHandler to work CefSharp winforms C#

I'm a bit new to c# and CefSharp :-) so be cool with me ! My goal is to call an url, and then explore DOM to retrieve data and then process this data for hypervision purpose. I've achieve that retrieval and my js code work well using…
1
vote
0 answers

Passing URL parameters to webapp2.RequestHandler in python results in 'None'

I have the following web application, which has 1 handler: class GetHandler(webapp2.RequestHandler): def get(self, name): self.response.headers['Content-Type'] = 'text/plain' self.response.write(name) application =…
user301091
  • 11
  • 2
1
vote
1 answer

DDD / CQRS - Does a request handler (or controller) can throw exceptions defined at the domain level?

Good morning, Let's say, we've a domain defining an exception such as ObjectNotFoundException which expect an identifier (VO), defined at the domain model. Question Can we throw domain exceptions from the request handlers directly, for instance: …
1
vote
1 answer

How to redirect the url from nested site in pencilblue?

I want to 301 redirect the URLs from previous site that are nested, as pencilblue doesn’t support them, e.g. a/b to page/b For this I have been experimenting in include/http/request_handler.js but facing some issues. Call never comes inside…
Touqeer
  • 583
  • 1
  • 4
  • 19
1
vote
0 answers

AWS Lamba new project compilation error on Eclipse

Every time I create a new AWS Lambda Java Project in Eclipse using this guide, I get the following compilation error. import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; public class…