| Home >> All >> org >> activemq >> transport >> [ stomp Javadoc ] |
Source code: org/activemq/transport/stomp/Command.java
1 /* 2 * Copyright (c) 2005 Your Corporation. All Rights Reserved. 3 */ 4 package org.activemq.transport.stomp; 5 6 import java.io.DataInput; 7 import java.io.IOException; 8 import java.util.Properties; 9 10 interface Command 11 { 12 public PacketEnvelope build(String commandLine, DataInput in) throws IOException; 13 14 /** 15 * Returns a command instance which always returns null for a packet 16 */ 17 Command NULL_COMMAND = new Command() 18 { 19 public PacketEnvelope build(String commandLine, DataInput in) 20 { 21 return new PacketEnvelope(null, new Properties()); 22 } 23 }; 24 }