Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package gov.nist.javax.sip;
  
  import javax.sip.Dialog;
Extension for ResponseEvent.

Since:
v2.0
 
 public class ResponseEventExt extends ResponseEvent {
     private boolean isForked;
     private boolean isRetransmission;
     private String remoteIpAddress;
     private int remotePort;
 
     public ResponseEventExt(Object sourceClientTransactionExt clientTransactionDialog dialogResponse response) {
         super(sourceclientTransactiondialogresponse);
          = clientTransaction;
     }

    
Return true if this is a forked response.

Returns:
true if the response event is for a forked response.
 
     public boolean isForkedResponse() {
         return ;
     }

    
Set true if this is a forked response.

Returns:
true if the response event is for a forked response.
 
     public void setForkedResponse(boolean forked) {
         this. = forked;
     }

    
Set the original transaction for a forked response.

Parameters:
originalTransaction - the original transaction for which this response event is a fork.
 
     public void setOriginalTransaction(ClientTransactionExt originalTransaction) {
          = originalTransaction;
     }

    
Get the original transaction for which this is a forked response. Note that this transaction can be in a TERMINATED state.

Returns:
the original clientTx for which this is a forked response.
 
         return this.;
     }

    
Return true if this is a forked response.

Returns:
true if the response event is for a forked response.
 
     public boolean isRetransmission() {
         return ;
     }

    

Parameters:
isRetransmission the isRetransmission to set
 
     public void setRetransmission(boolean isRetransmission) {
         this. = isRetransmission;
     }

    
Set the remote port from which response was received.

Parameters:
remotePort -- the remote port from where the response was received.
 
     public void setRemotePort(int remotePort) {
         this. = remotePort;
     }

    
Get the remote port from which response was received.
 
     public int getRemotePort() {
         return ;
     }

    
Get the remote IP addr. from which request was received.
 
     public String getRemoteIpAddress() {
        return ;
    }

    
Get the remote IP addr. from which request was received.

Returns:
remoteIp address from where request was received.
    public void setRemoteIpAddress(String remoteIpAddress) {
        this. = remoteIpAddress;
    }
New to GrepCode? Check out our FAQ X