|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.carol.cmi.smart.message.FactoryNameAnswer
public class FactoryNameAnswer
Server sends the factory name to the client.
| Field Summary |
|---|
| Fields inherited from interface org.ow2.carol.cmi.smart.api.Message |
|---|
HEADER_SIZE, INT_BYTE_SIZE |
| Constructor Summary | |
|---|---|
FactoryNameAnswer(java.nio.ByteBuffer buffer)
Create a new answer with the given buffer for the wrapped factory name. |
|
FactoryNameAnswer(java.lang.String factoryName)
Create a new answer with the given wrapped factory name. |
|
| Method Summary | |
|---|---|
protected java.nio.ByteBuffer |
encode(java.lang.String str)
Encode the given string into a bytebuffer. |
java.lang.String |
getFactoryName()
Get the wrapped factory name. |
java.nio.ByteBuffer |
getMessage()
Gets a message to send. |
java.nio.ByteBuffer |
getMessageContent()
Gets the content of this message (only this part, not the header). |
byte |
getOperationCode()
Gets the Operation Code of this answer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactoryNameAnswer(java.nio.ByteBuffer buffer)
buffer - containing the data to extract.public FactoryNameAnswer(java.lang.String factoryName)
factoryName - the given wrapped factory name.| Method Detail |
|---|
public java.nio.ByteBuffer getMessage()
getMessage in interface Messagepublic java.nio.ByteBuffer getMessageContent()
public byte getOperationCode()
getOperationCode in interface Messagepublic java.lang.String getFactoryName()
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 | |||||||||