
org.restcomm.slee.resource.tcap.wrappers.ComponentEventImpl Maven / Gradle / Ivy
The newest version!
/*
* TeleStax, Open Source Cloud Communications Copyright 2012.
* and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.restcomm.slee.resource.tcap.wrappers;
import org.mobicents.protocols.asn.AsnInputStream;
import org.mobicents.protocols.asn.AsnOutputStream;
import org.restcomm.protocols.ss7.tcap.api.tc.dialog.Dialog;
import org.restcomm.protocols.ss7.tcap.asn.EncodeException;
import org.restcomm.protocols.ss7.tcap.asn.ParseException;
import org.restcomm.protocols.ss7.tcap.asn.comp.Component;
import org.restcomm.protocols.ss7.tcap.asn.comp.ComponentType;
import org.restcomm.slee.resource.tcap.events.ComponentEvent;
/**
*
* @author amit bhayani
*
*/
public class ComponentEventImpl implements ComponentEvent {
private final TCAPDialogWrapper dialogWrapper;
protected final T wrappedComponent;
/**
* @param wrappedDialog
*/
public ComponentEventImpl(TCAPDialogWrapper wrappedDialog, T wrappedComponent) {
super();
this.dialogWrapper = wrappedDialog;
this.wrappedComponent = wrappedComponent;
}
/*
* (non-Javadoc)
*
* @see
* org.restcomm.protocols.ss7.tcap.asn.Encodable#decode(org.restcomm.protocols
* .asn.AsnInputStream)
*/
@Override
public void decode(AsnInputStream arg0) throws ParseException {
throw new UnsupportedOperationException("Unsupported Operation");
}
/*
* (non-Javadoc)
*
* @see
* org.restcomm.protocols.ss7.tcap.asn.Encodable#encode(org.restcomm.protocols
* .asn.AsnOutputStream)
*/
@Override
public void encode(AsnOutputStream arg0) throws EncodeException {
throw new UnsupportedOperationException("Unsupported Operation");
}
/*
* (non-Javadoc)
*
* @see org.restcomm.protocols.ss7.tcap.asn.comp.Component#getInvokeId()
*/
@Override
public Long getInvokeId() {
return this.wrappedComponent.getInvokeId();
}
/*
* (non-Javadoc)
*
* @see org.restcomm.protocols.ss7.tcap.asn.comp.Component#getType()
*/
@Override
public ComponentType getType() {
return this.wrappedComponent.getType();
}
/*
* (non-Javadoc)
*
* @see
* org.restcomm.protocols.ss7.tcap.asn.comp.Component#setInvokeId(java.
* lang.Long)
*/
@Override
public void setInvokeId(Long invokeId) {
this.wrappedComponent.setInvokeId(invokeId);
}
/*
* (non-Javadoc)
*
* @see org.restcomm.slee.resource.tcap.events.ComponentEvent#getDialog()
*/
@Override
public Dialog getDialog() {
return this.dialogWrapper;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy