sunlabs.brazil.handler
Class PushHandler
public
class
PushHandler
extends Object
implements Handler
Skeleton Handler for uploading files using multipart/form-data.
Application specific functionality is added by overriding
PushHandler.
NOTE: Most applications will want to use the
MultipartSetTemplate to deal with
multipart/form data.
Properties:
- prefix, suffix, glob, match
- Specify the URL that triggers this handler.
(See MatchString).
Version: 2.2, 06/11/13
Author: Stephen Uhler
Method Summary |
static int | indexOf(byte[] src, int srcStart, int srcEnd, byte[] dst, int dstStart, int dstEnd)
Find the index of dst in src or -1 if not found >
This is the byte array equivalent to string.indexOf() |
static int | indexOf(byte[] src, int srcStart, int srcEnd, String dst) |
boolean | init(Server server, String prefix) |
boolean | processData(Request request)
process the data - this doesn't currently do anything useful. |
boolean | respond(Request request)
Make sure this is one of our requests.
|
public static int indexOf(byte[] src, int srcStart, int srcEnd, byte[] dst, int dstStart, int dstEnd)
Find the index of dst in src or -1 if not found >
This is the byte array equivalent to string.indexOf()
public static int indexOf(byte[] src, int srcStart, int srcEnd, String dst)
public boolean init(
Server server, String prefix)
public boolean processData(
Request request)
process the data - this doesn't currently do anything useful.
public boolean respond(
Request request)
Make sure this is one of our requests.
IF OK, save file to proper spot.