public class Session extends Object implements ErrorHandler
Modifier and Type | Field and Description |
---|---|
MessageInputStream |
in |
MessageOutputStream |
out |
DEFAULT, NULL
Constructor and Description |
---|
Session(Connection connection,
SessionProtocol protocol,
TemplateRegistry inboundRegistry,
TemplateRegistry outboundRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
addDynamicTemplateDefinition(MessageTemplate template) |
void |
close() |
void |
close(ErrorCode alertCode) |
void |
error(ErrorCode code,
String message) |
void |
error(ErrorCode code,
String message,
Throwable t) |
Client |
getClient() |
Connection |
getConnection() |
OpenFastContext |
getContext() |
ErrorHandler |
getErrorHandler() |
void |
registerDynamicTemplate(QName templateName,
int id) |
void |
reset() |
void |
sendTemplates(TemplateRegistry registry) |
void |
setClient(Client client) |
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
setListening(boolean listening) |
void |
setMessageHandler(MessageListener messageListener) |
void |
setSessionListener(SessionListener sessionListener) |
public final MessageInputStream in
public final MessageOutputStream out
public Session(Connection connection, SessionProtocol protocol, TemplateRegistry inboundRegistry, TemplateRegistry outboundRegistry)
public void close() throws FastConnectionException
FastConnectionException
public void close(ErrorCode alertCode)
public void setClient(Client client)
public Client getClient()
public void error(ErrorCode code, String message)
error
in interface ErrorHandler
public void error(ErrorCode code, String message, Throwable t)
error
in interface ErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
public OpenFastContext getContext()
public void reset()
public Connection getConnection()
public void setMessageHandler(MessageListener messageListener)
public void setListening(boolean listening)
public ErrorHandler getErrorHandler()
public void sendTemplates(TemplateRegistry registry)
public void addDynamicTemplateDefinition(MessageTemplate template)
public void registerDynamicTemplate(QName templateName, int id)
public void setSessionListener(SessionListener sessionListener)
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.