org.norther.tammi.spray.engine.content
Class ContentProcessingEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.norther.tammi.spray.engine.content.ContentProcessingEvent
All Implemented Interfaces:
Serializable

public class ContentProcessingEvent
extends EventObject

Events of this type are sent to a content object that implements the ContentProcessingListener interface when its processing starts or ends.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContentProcessingEvent(Content content, Writer writer, String name, String encoding)
          Constructs a new event.
 
Method Summary
 String getEncoding()
          Gets the content encoding.
 String getName()
          Gets the content name.
 Writer getWriter()
          Gets the content writer.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentProcessingEvent

public ContentProcessingEvent(Content content,
                              Writer writer,
                              String name,
                              String encoding)
Constructs a new event.

Parameters:
content - the content.
writer - the writer.
name - the content name.
encoding - the content encoding.
Method Detail

getWriter

public Writer getWriter()
Gets the content writer.

Returns:
the content writer.

getName

public String getName()
Gets the content name.

Returns:
the content name.

getEncoding

public String getEncoding()
Gets the content encoding.

Returns:
the content encoding.


Copyright © 2004 The Norther Organization. All rights reserved.