|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.carol.cmi.smart.message.ResourceNotFound
public class ResourceNotFound
Send a resource not found message to client.
| Field Summary |
|---|
| Fields inherited from interface org.ow2.carol.cmi.smart.api.Message |
|---|
HEADER_SIZE, INT_BYTE_SIZE |
| Constructor Summary | |
|---|---|
ResourceNotFound(java.nio.ByteBuffer buffer)
Create a new answer with the given buffer. |
|
ResourceNotFound(java.lang.String resourceName)
Create a new answer with the given resource name. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
decode(java.nio.ByteBuffer buffer)
Decode the string encoded in the bytebuffer in UTF-8 format. |
protected java.nio.ByteBuffer |
encode(java.lang.String str)
Encode the given string into a bytebuffer. |
java.nio.ByteBuffer |
getMessage()
Get the message to send. |
byte |
getOperationCode()
Gets the OperationCode of this message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceNotFound(java.lang.String resourceName)
resourceName - the given resource namepublic ResourceNotFound(java.nio.ByteBuffer buffer)
buffer - the given buffer.| Method Detail |
|---|
public java.nio.ByteBuffer getMessage()
getMessage in interface Messagepublic byte getOperationCode()
getOperationCode in interface Messageprotected java.lang.String decode(java.nio.ByteBuffer buffer)
buffer - the given buffer to analyze.
protected java.nio.ByteBuffer encode(java.lang.String str)
str - the given string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||