|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.service.ServiceMessage
public abstract class ServiceMessage
Common abstract base class for ServiceRequest and ServiceResponse.
Implements org.spicefactory.cinnamon.io.Externalizable so that subclasses can be mapped
to the corresponding ActionScript 3 classes. Allows retrieving and modifying of message headers.
Those headers do not relate to HTTP headers or AMF0 headers. They can be set on the client side with
Cinnamons Client API and can be used on the server side in ServiceInterceptors. This allows to add
information like credentials without polluting the API of the services with those parameters.
| Constructor Summary | |
|---|---|
protected |
ServiceMessage()
Creates a new ServiceMessage. |
| Method Summary | |
|---|---|
Set<String> |
getHeaderNames()
Returns an unmodifiable Set containing all header names for this message. |
Object |
getHeaderValue(String name)
Returns the header value for the given name. |
void |
readExternal(DataInput in)
Restores the content of this object from the DataInput instance. |
void |
removeHeader(String name)
Removes the header for the given name. |
void |
setHeader(String name,
Object value)
Sets a header for this message. |
void |
writeExternal(DataOutput out)
Saves the content of this object to the DataOutput instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ServiceMessage()
| Method Detail |
|---|
public void setHeader(String name,
Object value)
name - value - public void removeHeader(String name)
name - the name of the header to removepublic Set<String> getHeaderNames()
public Object getHeaderValue(String name)
name - the name of the header
public void readExternal(DataInput in)
Externalizable
readExternal in interface Externalizablein - the AMF3 data to read frompublic void writeExternal(DataOutput out)
Externalizable
writeExternal in interface Externalizableout - the output to write to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||