org.ow2.carol.cmi.smart.message
Class ProviderURLsRequest

java.lang.Object
  extended by org.ow2.carol.cmi.smart.message.ProviderURLsRequest
All Implemented Interfaces:
Message

public class ProviderURLsRequest
extends java.lang.Object
implements Message

Client asks the list of available provider urls to server.

Author:
The new CMI team

Field Summary
 
Fields inherited from interface org.ow2.carol.cmi.smart.api.Message
HEADER_SIZE, INT_BYTE_SIZE
 
Constructor Summary
ProviderURLsRequest(java.lang.String protocol)
          Builds a new message with the given protocol.
 
Method Summary
protected  java.nio.ByteBuffer encode(java.lang.String str)
          Encode the given string into a bytebuffer.
 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 OperationCode of this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderURLsRequest

public ProviderURLsRequest(java.lang.String protocol)
Builds a new message with the given protocol.

Parameters:
protocol - the given protocol.
Method Detail

getMessage

public java.nio.ByteBuffer getMessage()
Gets a message to send.

Specified by:
getMessage in interface Message
Returns:
the bytebuffer to send

getOperationCode

public byte getOperationCode()
Gets the OperationCode of this message.

Specified by:
getOperationCode in interface Message
Returns:
the operation code.

getMessageContent

public java.nio.ByteBuffer getMessageContent()
Gets the content of this message (only this part, not the header).

Returns:
the content of this message.

encode

protected java.nio.ByteBuffer encode(java.lang.String str)
Encode the given string into a bytebuffer.

Parameters:
str - the given string
Returns:
a bytebuffer with UTF-8 encoded string


Copyright © 2008 OW2 Consortium. All Rights Reserved.