| java.lang.Object sunlabs.brazil.handler.PushHandler
PushHandler | public class PushHandler implements Handler(Code) | | Skeleton Handler for uploading files using multipart/form-data.
Application specific functionallity is added by overriding
PushHandler.processData .
Properties:
- prefix
- The URL prefix required for all documents
author: Stephen Uhler version: 1.9, 00/12/11 |
Inner Class :public static class Split | |
Method Summary | |
public static int | indexOf(byte[] src, int srcStart, int srcEnd, byte[] dst, int dstStart, int dstEnd) | 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. |
PREFIX | final static String PREFIX(Code) | | Handler configuration property prefix.
Only URL's that begin with this string are considered by this handler.
The default is (/).
|
indexOf | public static int indexOf(byte[] src, int srcStart, int srcEnd, byte[] dst, int dstStart, int dstEnd)(Code) | | Find the index of dst in src or -1 if not found >
This is the byte array equivalent to string.indexOf()
|
indexOf | public static int indexOf(byte[] src, int srcStart, int srcEnd, String dst)(Code) | | |
processData | public boolean processData(Request request)(Code) | | process the data - this doesn't currently do anything useful.
|
respond | public boolean respond(Request request) throws IOException(Code) | | Make sure this is one of our requests.
IF OK, save file to proper spot.
|
|
|