本文整理匯總了Java中org.simpleframework.transport.Channel.getTrace方法的典型用法代碼示例。如果您正苦於以下問題:Java Channel.getTrace方法的具體用法?Java Channel.getTrace怎麽用?Java Channel.getTrace使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.simpleframework.transport.Channel
的用法示例。
在下文中一共展示了Channel.getTrace方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: EntityConsumer
import org.simpleframework.transport.Channel; //導入方法依賴的package包/類
/**
* Constructor for the <code>EntityConsumer</code> object. This
* is used to build an entity from the constituent parts. Once
* all of the parts have been consumed they are available from
* the exposed methods of this consumed instance.
*
* @param allocator this is used to allocate the memory used
* @param channel this is the channel used to send a response
*/
public EntityConsumer(Allocator allocator, Channel channel) {
this.header = new RequestConsumer();
this.expect = new Expectation(channel);
this.factory = new ConsumerFactory(allocator, header);
this.sequence = header.getHeader();
this.trace = channel.getTrace();
}
示例2: Collector
import org.simpleframework.transport.Channel; //導入方法依賴的package包/類
/**
* The <code>Collector</code> object used to collect the data from
* the underlying transport. In order to collect a body this must
* be given an <code>Allocator</code> which is used to create an
* internal buffer to store the consumed body.
*
* @param allocator this is the allocator used to buffer data
* @param tracker this is the tracker used to create sessions
* @param channel this is the channel used to read the data
*/
public Collector(Allocator allocator, Channel channel) {
this.entity = new EntityConsumer(allocator, channel);
this.timer = new Timer(MILLISECONDS);
this.cursor = channel.getCursor();
this.trace = channel.getTrace();
this.channel = channel;
}
示例3: Transfer
import org.simpleframework.transport.Channel; //導入方法依賴的package包/類
/**
* Constructor for the <code>Transfer</code> object, this is used
* to create an object used to transfer a response body. This must
* be given a <code>Conversation</code> that can be used to set
* and get information regarding the type of transfer required.
*
* @param support this is used to determine the semantics
* @param sender this is used to send data over the transport
* @param monitor this is used to signal I/O events to the kernel
*/
public Transfer(Response response, Conversation support, Channel channel, Monitor monitor) {
this.factory = new ProducerFactory(support, channel, monitor);
this.trace = channel.getTrace();
this.response = response;
this.support = support;
}
示例4: EntityConsumer
import org.simpleframework.transport.Channel; //導入方法依賴的package包/類
/**
* Constructor for the <code>EntityConsumer</code> object. This is used to
* build an entity from the constituent parts. Once all of the parts have
* been consumed they are available from the exposed methods of this
* consumed instance.
*
* @param allocator
* this is used to allocate the memory used
* @param channel
* this is the channel used to send a response
*/
public EntityConsumer(Allocator allocator, Channel channel) {
this.header = new RequestConsumer();
this.expect = new Expectation(channel);
this.factory = new ConsumerFactory(allocator, this.header);
this.sequence = this.header.getHeader();
this.trace = channel.getTrace();
}
示例5: Collector
import org.simpleframework.transport.Channel; //導入方法依賴的package包/類
/**
* The <code>Collector</code> object used to collect the data from the
* underlying transport. In order to collect a body this must be given an
* <code>Allocator</code> which is used to create an internal buffer to
* store the consumed body.
*
* @param allocator
* this is the allocator used to buffer data
* @param tracker
* this is the tracker used to create sessions
* @param channel
* this is the channel used to read the data
*/
public Collector(Allocator allocator, Channel channel) {
this.entity = new EntityConsumer(allocator, channel);
this.timer = new Timer(MILLISECONDS);
this.cursor = channel.getCursor();
this.trace = channel.getTrace();
this.channel = channel;
}
示例6: Transfer
import org.simpleframework.transport.Channel; //導入方法依賴的package包/類
/**
* Constructor for the <code>Transfer</code> object, this is used to create
* an object used to transfer a response body. This must be given a
* <code>Conversation</code> that can be used to set and get information
* regarding the type of transfer required.
*
* @param support
* this is used to determine the semantics
* @param sender
* this is used to send data over the transport
* @param monitor
* this is used to signal I/O events to the kernel
*/
public Transfer(Response response, Conversation support, Channel channel,
Monitor monitor) {
this.factory = new ProducerFactory(support, channel, monitor);
this.trace = channel.getTrace();
this.response = response;
this.support = support;
}
示例7: Expectation
import org.simpleframework.transport.Channel; //導入方法依賴的package包/類
/**
* Constructor for the <code>Expectation</code> object. This will
* create an object that will deliver the continue status code.
* Because the transport performs an asynchronous write this will
* not block the execution of this method and delay execution.
*
* @param channel this is the channel used to deliver the prompt
*/
public Expectation(Channel channel) {
this.sender = channel.getSender();
this.trace = channel.getTrace();
}
示例8: Expectation
import org.simpleframework.transport.Channel; //導入方法依賴的package包/類
/**
* Constructor for the <code>Expectation</code> object. This will create an
* object that will deliver the continue status code. Because the transport
* performs an asynchronous write this will not block the execution of this
* method and delay execution.
*
* @param channel
* this is the channel used to deliver the prompt
*/
public Expectation(Channel channel) {
this.sender = channel.getSender();
this.trace = channel.getTrace();
}