Method Summary |
|
public void | addMessageProcessor(MessageProcessor newMessageProcessor) Adds a new MessageProcessor to the list of running processors
for this SIPMessageStack and starts it. |
public MessageChannel | createMessageChannel(Hop nextHop) Creates a new MessageChannel for a given Hop.
Parameters: nextHop - Hop to create a MessageChannel to. |
public MessageProcessor | createMessageProcessor(int port, String transport) Creates the equivalent of a JAIN listening point and attaches
to the stack. |
public String | getBadMessageLog() Gets the file name of the bad message log. |
public Hop | getDefaultRoute() Gets the default route. |
public RouteHeader | getDefaultRouteHeader() Gets the route header corresponding to the default route. |
public String | getHostAddress() Gets my address. |
public MessageProcessor | getMessageProcessor(String transport) Gets a message processor for the given transport. |
public Vector | getMessageProcessors() Gets an array of running MessageProcessors on this SIPMessageStack. |
public Hop | getNextHop() Gets the default next hop from the router. |
public int | getPort(String transport) Gets port of the message processor (based on the transport). |
public RouteHeader | getRouteHeader(Hop hop) Gets the route header for this hop. |
public Router | getRouter() Gets the router algorithm. |
protected SecurityToken | getSecurityToken() |
public String | getStackName() Gets the Stack name. |
public synchronized boolean | isAlive() Returns the status of the toExit flag. |
public boolean | isTransportEnabled(String transport) Returns true if a transport is enabled.
Parameters: transport - is the transport to check. |
public boolean | isTransportEnabled(String transport, int port) Returns true if the transport is enabled for a given port.
Parameters: transport - transport to check Parameters: port - port to check transport at. |
public void | logBadMessage(String message) Logs a bad message (invoked when a parse exception arises). |
protected SIPServerRequestInterface | newSIPServerRequest(Request siprequest, MessageChannel msgchan) Generates a new SIPSeverRequest from the given Request. |
SIPServerResponseInterface | newSIPServerResponse(Response sipresponse, MessageChannel msgchan) Generates a new SIPSeverResponse from the given Response.
Parameters: sipresponse - Response from which the SIPServerResponseis to be generated. |
public void | removeMessageProcessor(MessageProcessor oldMessageProcessor) Removes a MessageProcessor from this SIPMessageStack. |
public void | setHostAddress(String stackAddress) Sets my address. |
public void | setMaxConnections(int nconnections) Sets the max # of simultaneously handled TCP connections. |
protected void | setMessageFactory(SIPStackMessageFactory messageFactory) Sets the message factory. |
public void | setRouter(Router router) Sets the router algorithm. |
protected void | setSecurityToken(SecurityToken token) |
public void | setSingleThreaded() Sets the flag that instructs the stack to only start a single
thread for sequentially processing incoming udp messages (thus
serializing the processing). |
public void | setStackMessageFactory(SIPStackMessageFactory messageFactory) Sets the server Request and response factories. |
public void | setStackName(String stackName) Sets the descriptive name of the stack. |
public void | setThreadPoolSize(int size) Sets the thread pool size for processing incoming UDP messages. |
public void | stopStack() Makes the stack close all accept connections and return. |