Questions tagged [requesthandler]
104 questions
0
votes
0 answers
Asp.Net 5 Custom DelegatingHandlers
I have written a custom DelegatingHandler that intercepts requests and authenticates it against an API key. This was being used in a WebApi service, pre ASP.NET 5.
protected override Task SendAsync(HttpRequestMessage request,…

The Sheek Geek
- 4,126
- 6
- 38
- 48
0
votes
1 answer
solr-api accessing document field is taking a lot of time
I am trying to access a field in custom request handler. I am accessing it like this for each document:
Document doc;
doc = reader.document(id);
DocFields = doc.getValues("state");
There are around 600,000 documents in the solr. For a query running…

Neeraj Lajpal
- 1
- 1
0
votes
1 answer
Passing parameter in request handler is not showing correct results
New to android, it is a trivial issue but could not resolve in last 3 hours.
When I use the parameter called keyword, it is not showing correct results. otherwise it is working fine if I pass keyword value in the url. Not sure, how to pass the…

Dep
- 183
- 1
- 3
- 14
0
votes
1 answer
Cakephp redirect doesn't work with jquery mobile
I'm trying to use CakePhp and JQuery Mobile combined.
Generally it works great, but i've got a huge problem with using the Redirect from One Controller to a different.
Espacially since i added the RequestHandler.
I think the problem in this case is…

Sigurius
- 41
- 1
- 5
0
votes
1 answer
where to cache stuff for RequestHandler?
I intend to use tornado to write a handler that implement an autocomplete service, demonstrated as below:
class AutoCompleteHandler(tornado.web.RequestHandler):
def initialize(self, indexbuilder):
self.indexbuilder = indexbuilder
…

timfeirg
- 1,426
- 18
- 37
0
votes
1 answer
Solr Replication not happening (only) of delete messages because of commit issue in solr 4.4.0
I am facing a very weird behavior in Solr version 4.4.0
When I send following url request for indexing two documents, it works fine, ie, it writes the indexing message into respective core. Hence we can say that commit works…

Shweta
- 1,111
- 3
- 15
- 30
0
votes
0 answers
Solr 4.9 - how to use defaults, appends and invariant in the requestHandler
I have 8 fields in my schema. I have 2 types of documents in the index. The first type contains the details of a book and the second type of document contains where all a particular book is referenced.
The reason for such a schema is to reduce the…

JHS
- 7,761
- 2
- 29
- 53
0
votes
0 answers
custom RequestHandler in solr
I have written a custom request handler in solr and added following line in solrconfig.xml:
requestHandler name="/xyz" class="" enable="${enable_xyz:true}"/
But still I cannot see its working.
Through logs I checked that a http GET request has been…

Shweta
- 1,111
- 3
- 15
- 30
0
votes
1 answer
Cakephp's beforeSave() not retaining new data using $model::save()
When i do debug($this->data) on SalasController reservar() method, $data from json is ok, but when i do this->Sala->save($this->data), and try debug($data) on beforeSave() return that:
Notice (8): Undefined property: FormataDataBehavior::$data…

Marcelo Aymone
- 293
- 3
- 19
0
votes
2 answers
What are manu, sku and cat in the qf parameter in SOLR?
I was taking a look at the solrconfig.xml for the dismax parser and found a bunch of values such as sku, manu and cat. What are these?

Johnathan Au
- 5,244
- 18
- 70
- 128
0
votes
1 answer
Google AppEngine: Python 2.7: How to split request handler up into several files?
I have an application in which I would like to move some of the request handlers into separate files. I've reduced the problem to this simple app which demonstrates it.
If I browse the main page, e.g.:
http://localhost:12082/
I see
'Hello…

slashdottir
- 7,835
- 7
- 55
- 71
0
votes
3 answers
cakephp requestHandler check for swf/flash
Is there a way to check if a cakePHP action is being called from an swf/flash movie like there is for Ajax using the requestHandler?

designvoid
- 431
- 1
- 6
- 19
0
votes
2 answers
2 Components in 1 Controller
Hi I am really new in CakePhp, I hope you can help me
class BookingsController extends AppController {
public $helpers = array("PDF");
//public $virtualFields = array(
// 'full_name' => 'CONCAT(Customer.cust_fname, ", ",…

user2738978
- 3
- 1
0
votes
1 answer
set RequestHandler to use XmlView by default
I'm using the Xml/Json views for an API.
Going to '/Api.json' or '/Api.xml' works fine, but I'd like it to default to the XmlView when posting to '/Api'
What's the most simple/best way get this done?
Edit:
As Jelmer mentioned, just doing…

Nico
- 559
- 4
- 22
0
votes
2 answers
How to add an instance attribute to a subclass of webapp2.RequestHandler?
I have the following class definition:
class TestHandler(webapp2.RequestHandler):
def get(self):
self.msg = "hello world"
self.render_form() # modifies self.msg
def post(self):
print self.msg
#...
…

mhmhsh
- 161
- 1
- 13