org.onebusaway.siri.core
Class SiriChannelInfo

java.lang.Object
  extended by org.onebusaway.siri.core.SiriChannelInfo

public class SiriChannelInfo
extends Object

Information associated with a particular SIRI channel. Every SIRI subscription has a data channel associated with it. Multiple subscriptions can refer to the same channel, in fact.

Author:
bdferris

Constructor Summary
SiriChannelInfo()
           
 
Method Summary
<T> T
getContext()
          User-supplied context data associated with this channel.
 List<SiriClientRequest> getSiriClientRequests()
          Recall that a particular ServiceDelivery can potentially be associated with multiple client requests, as the SIRI endpoint may group responses to multiple requests into a single delivery.
 void setContext(Object context)
           
 void setSiriClientRequests(List<SiriClientRequest> siriClientRequests)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiriChannelInfo

public SiriChannelInfo()
Method Detail

getSiriClientRequests

public List<SiriClientRequest> getSiriClientRequests()
Recall that a particular ServiceDelivery can potentially be associated with multiple client requests, as the SIRI endpoint may group responses to multiple requests into a single delivery.

Returns:
the set of client requests associated with deliveries on this channel

setSiriClientRequests

public void setSiriClientRequests(List<SiriClientRequest> siriClientRequests)

getContext

public <T> T getContext()
User-supplied context data associated with this channel. See SiriClientRequest.getChannelContext(). Think of this a user-supplied callback data associated with your subscription channel.

Type Parameters:
T -
Returns:
any user-supplied context data associated with this channel, or null if not set

setContext

public void setContext(Object context)


Copyright © 2012 OneBusAway. All Rights Reserved.