org.atmosphere.samples.pubsub.dto
Class BaseCommand

java.lang.Object
  extended by org.atmosphere.samples.pubsub.dto.BaseCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
EmptyCommand, SubscribeCommand, UnsubscribeCommand

public abstract class BaseCommand
extends Object
implements Command


Field Summary
protected  String channel
           
protected  org.atmosphere.cpr.AtmosphereResource resource
           
 
Constructor Summary
BaseCommand()
           
 
Method Summary
 String getChannel()
           
 void setChannel(String channel)
           
 void setResource(org.atmosphere.cpr.AtmosphereResource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.atmosphere.samples.pubsub.dto.Command
execute
 

Field Detail

resource

protected org.atmosphere.cpr.AtmosphereResource resource

channel

protected String channel
Constructor Detail

BaseCommand

public BaseCommand()
Method Detail

setResource

public void setResource(org.atmosphere.cpr.AtmosphereResource resource)
Specified by:
setResource in interface Command

getChannel

public String getChannel()
Specified by:
getChannel in interface Command

setChannel

public void setChannel(String channel)


Copyright © 2014. All Rights Reserved.