org.apache.ws.pubsub.emitter.file
Class FileEmitterTask
java.lang.Object
org.apache.ws.pubsub.emitter.EmitterTask
org.apache.ws.pubsub.emitter.file.FileEmitterTask
- All Implemented Interfaces:
- java.lang.Runnable
- public class FileEmitterTask
- extends EmitterTask
An emitter task that stores a notification to a file specified in the FILE protocol URL.
If the file already exists, the new notification data will be appended to the end.
If the file is actually a directory, the notification filename will be generated.
Field Summary |
static java.lang.String |
PROTOCOL
This emitter's protocol |
Method Summary |
protected void |
emit()
Stores the notification in a file specified by the destination URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROTOCOL
public static final java.lang.String PROTOCOL
- This emitter's protocol
- See Also:
- Constant Field Values
FileEmitterTask
public FileEmitterTask(javax.xml.soap.SOAPMessage notif,
java.net.URL url)
- Creates a new
FileEmitterTask
object.
- See Also:
EmitterTask(SOAPMessage, URL)
emit
protected void emit()
throws EmitterException
- Stores the notification in a file specified by the destination URL. No attempt to
lock the file or otherwise force synchronous writes to the file is made;
it is up to the subscriber to provide a file URI that will be suitable for
writing. If the file is a directory, a file will be created in that directory.
- Specified by:
emit
in class EmitterTask
- Throws:
EmitterException
- on error attempting to send notification- See Also:
EmitterTask.emit()
Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.