FileDocCategorySizeDatePackage
HTTPMessage.javaAPI DocAzureus 3.0.3.42778Tue Jul 17 18:03:12 BST 2007com.aelitis.azureus.core.networkmanager.impl.http

HTTPMessage

public class HTTPMessage extends Object implements com.aelitis.azureus.core.peermanager.messaging.Message

Fields Summary
public static final String
MSG_ID
private static final byte[]
MSG_ID_BYTES
private static final String
MSG_DESC
private org.gudy.azureus2.core3.util.DirectByteBuffer[]
data
Constructors Summary
protected HTTPMessage(String stuff)

	
	
	
			 
	
		data = new DirectByteBuffer[]{ new DirectByteBuffer( ByteBuffer.wrap( stuff.getBytes())) };
	
protected HTTPMessage(byte[] stuff)

		data = new DirectByteBuffer[]{ new DirectByteBuffer( ByteBuffer.wrap( stuff )) };
	
Methods Summary
public com.aelitis.azureus.core.peermanager.messaging.Messagedeserialize(org.gudy.azureus2.core3.util.DirectByteBuffer data, byte version)

		throw( new MessageException( "not supported" ));
	
public voiddestroy()

		data[0].returnToPool();
	
protected com.aelitis.azureus.core.networkmanager.RawMessageencode(com.aelitis.azureus.core.peermanager.messaging.Message message)

		return( 
				new RawMessageImpl( 
						message, 
						data,
						RawMessage.PRIORITY_HIGH, 
						true, 
						new Message[0] ));
	
public org.gudy.azureus2.core3.util.DirectByteBuffer[]getData()

		return( data );
	
public java.lang.StringgetDescription()

		return( MSG_DESC );
	
public java.lang.StringgetFeatureID()

		return( null );
	
public intgetFeatureSubID()

		return( 0 );
	
public java.lang.StringgetID()

		return( MSG_ID );
	
public byte[]getIDBytes()

		return( MSG_ID_BYTES );
	
public intgetType()

		return( TYPE_DATA_PAYLOAD );
	
public bytegetVersion()

		return( 1 );