Questions tagged [handlers]

225 questions
0
votes
0 answers

Juli tomcat 7 logging.properties

I have a jar that contains a CustomLoginModule to perform JAAS Autherization. This jar is located in ${CATALINA_BASE}/lib . I have an org.apache.juli.logging.Log object that performs logging in the module on different levels. I would like to have a…
mortada
  • 23
  • 6
0
votes
1 answer

Send video streaming to web browser on iOS with handler (.ashx)

I have a handler that returns a video file the "source" of a video tag: file_info := new System.IO.FileInfo(_Fichero._RutaPrivada); bytearr := File.ReadAllBytes(file_info.FullName); startbyte := 0; endbyte := bytearr.Length; …
Anibal Díaz
  • 111
  • 7
0
votes
1 answer

Applescript: Getting a list of numbered folders from a shell script and identifying the highest value

I have two different handlers, one which gets the names (which are numbers like "1.0" and "1.1") of folders within a folder, then converts that to an applescript list. Then it passes that list to another handler, which evaluates the list and…
DJpotato
  • 17
  • 7
0
votes
1 answer

IIS Handlers exclude a Directory when processing htm requests

I am using the below handler in by web.config file. The problem i am now faced with is that i have .htm files in a particular directory that i need to be excluded from this handler. Is there a way to do this?
jackncoke
  • 2,000
  • 6
  • 25
  • 66
0
votes
1 answer

Netty UDP Handlers - Asynchronous?

Am working on UDP server which have multiple handlers. Look at my code how I bootstrap the channel. return new Bootstrap(). group(rtpNioEventLoopGroup()). channel(NioDatagramChannel.class). …
Isuru
  • 7,893
  • 8
  • 30
  • 38
0
votes
1 answer

Android - Define a Handler on the UI Thread

In the Training documentation on Android, Define a Handler on the UI Thread, see this code private PhotoManager() { ... /* Instantiates a new anonymous Handler object and defines its handleMessage() method. The Handler *must* run on the UI…
nightlytrails
  • 2,448
  • 3
  • 22
  • 33
0
votes
1 answer

How to configure Jetty Handlers?

I am encountering a problem with setting up the handlers for my web application, what I want is : Having some requests handled by an HTTPServlet with doGet and doPost methods ( how can I load JSP pages from within these methods ? ) and also be able…
0
votes
1 answer

Method returning progress of loop

I'm creating a class library with a method, for example, OnetoTen(), which basically is a for loop counting from 1 to 10. What i'm trying to achieve is to call this method from another program and have it output what number/iteration the for loop is…
LuxC
  • 129
  • 1
  • 9
0
votes
2 answers

Delegate onclick handler of one element from another using Jquery

My question is as follows: I have a dynamically generated element that has onclick='removeMe()', a function that causes it to removes itself. I used jQuery .on('click',selector,handler) delegation to bind a function to this element, to execute a…
0
votes
1 answer

How to set up the Windows registry with a URL-Handler for a custom protocol to invoke Firefox and open a real URL

We have a CTI program which uses IE-Framework and opens its content in Internet Explorer. We would like to use Firefox instead of IE, but the developers refuse to change anything. So I thought about an URL-Handler. The CTI-Program uses an URL like…
Cebion
  • 11
  • 1
  • 1
0
votes
1 answer

Why logging.handlers.TimedRotatingFileHandler log file create time is "drifting" causing headache for ETL

I'm having an issue with python's logging module's TimeRotatingFileHandler where each consecutive log file's create time appears to be "drifting" away from the desired top of the hour rotation. See example: -rw-rw-r--. 1 user user 1278 Oct 13 18:58…
ctpaquette
  • 118
  • 1
  • 1
  • 7
0
votes
1 answer

VB.net AddHandler with index

I have a multithread program that download info from the internet off different proxies. I have it working fine but I have to add functions for each thread so that I know which thread is being processed. so if I want 10 thread I need 10 functions…
gezzuzz
  • 188
  • 2
  • 16
0
votes
1 answer

Can Web API message handlers rely on the result of other message handlers?

Considering that message handlers return from their execution using SendAsync, such as: var response = await base.SendAsync(request, cancellationToken); does this mean that each message handler cannot guarantee that a previous message handler will…
Matt W
  • 11,753
  • 25
  • 118
  • 215
0
votes
0 answers

How to get this form to send in Python Mechanize?

I have been working on this problem for a good 6 hours and I cannot for the life of me figure out why the form is not sending properly br = mechanize.Browser() br.addheaders = [('User-agent', 'Mozilla/5.0 (Windows NT 6.1;…
Matt
  • 101
  • 1
  • 1
  • 4
0
votes
1 answer

How to use handlers to output different texts based on number of button clicks in java

I'm trying to use Handlers to achieve some task based upon button clicks. For example, if the button is pressed once, it must output 1 or if the button is pressed twice, it must output 2. This must be done within 5 seconds. I've done this in…
Kaushik
  • 553
  • 3
  • 11
  • 27