/protocols/ss7/map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/service/supplementary/UnstructuredSSNotifyResponseIndicationImpl.java
http://mobicents.googlecode.com/ · Java · 160 lines · 67 code · 15 blank · 78 comment · 0 complexity · 711c0ba9a663fa4ce18701fa9bc00ffe MD5 · raw file
- /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual
- * contributors as indicated by the @authors tag. All rights reserved.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- *
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- *
- * This program 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
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- */
- package org.mobicents.protocols.ss7.map.service.supplementary;
- import org.mobicents.protocols.asn.AsnInputStream;
- import org.mobicents.protocols.asn.AsnOutputStream;
- import org.mobicents.protocols.asn.Tag;
- import org.mobicents.protocols.ss7.map.MessageImpl;
- import org.mobicents.protocols.ss7.map.api.MAPException;
- import org.mobicents.protocols.ss7.map.api.MAPMessageType;
- import org.mobicents.protocols.ss7.map.api.MAPOperationCode;
- import org.mobicents.protocols.ss7.map.api.MAPParsingComponentException;
- import org.mobicents.protocols.ss7.map.api.MAPParsingComponentExceptionReason;
- import org.mobicents.protocols.ss7.map.api.service.supplementary.MAPDialogSupplementary;
- import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSNotifyResponseIndication;
- import org.mobicents.protocols.ss7.map.primitives.MAPAsnPrimitive;
- /**
- * @author amit bhayani
- *
- */
- public class UnstructuredSSNotifyResponseIndicationImpl extends MessageImpl implements UnstructuredSSNotifyResponseIndication, MAPAsnPrimitive {
- public MAPDialogSupplementary getMAPDialog() {
- return (MAPDialogSupplementary) super.getMAPDialog();
- }
- @Override
- public MAPMessageType getMessageType() {
- return MAPMessageType.unstructuredSSNotify_Response;
- }
- @Override
- public int getOperationCode() {
- return MAPOperationCode.unstructuredSS_Notify;
- }
- /*
- * (non-Javadoc)
- *
- * @see org.mobicents.protocols.ss7.map.primitives.MAPAsnPrimitive#getTag()
- */
- @Override
- public int getTag() throws MAPException {
- return Tag.SEQUENCE;
- }
- /*
- * (non-Javadoc)
- *
- * @see
- * org.mobicents.protocols.ss7.map.primitives.MAPAsnPrimitive#getTagClass()
- */
- @Override
- public int getTagClass() {
- return Tag.CLASS_UNIVERSAL;
- }
- /*
- * (non-Javadoc)
- *
- * @see
- * org.mobicents.protocols.ss7.map.primitives.MAPAsnPrimitive#getIsPrimitive
- * ()
- */
- @Override
- public boolean getIsPrimitive() {
- return false;
- }
- /*
- * (non-Javadoc)
- *
- * @see
- * org.mobicents.protocols.ss7.map.primitives.MAPAsnPrimitive#decodeAll(
- * org.mobicents.protocols.asn.AsnInputStream)
- */
- @Override
- public void decodeAll(AsnInputStream ansIS) throws MAPParsingComponentException {
- throw new MAPParsingComponentException("UnstructuredSSNotifyResponseIndication has no MAP message primitive",
- MAPParsingComponentExceptionReason.MistypedParameter);
- }
- /*
- * (non-Javadoc)
- *
- * @see
- * org.mobicents.protocols.ss7.map.primitives.MAPAsnPrimitive#decodeData
- * (org.mobicents.protocols.asn.AsnInputStream, int)
- */
- @Override
- public void decodeData(AsnInputStream ansIS, int length) throws MAPParsingComponentException {
- throw new MAPParsingComponentException("UnstructuredSSNotifyResponseIndication has no MAP message primitive",
- MAPParsingComponentExceptionReason.MistypedParameter);
- }
- /*
- * (non-Javadoc)
- *
- * @see
- * org.mobicents.protocols.ss7.map.primitives.MAPAsnPrimitive#encodeAll(
- * org.mobicents.protocols.asn.AsnOutputStream)
- */
- @Override
- public void encodeAll(AsnOutputStream asnOs) throws MAPException {
- throw new MAPException("UnstructuredSSNotifyResponseIndication has no MAP message primitive");
- }
- /*
- * (non-Javadoc)
- *
- * @see
- * org.mobicents.protocols.ss7.map.primitives.MAPAsnPrimitive#encodeAll(
- * org.mobicents.protocols.asn.AsnOutputStream, int, int)
- */
- @Override
- public void encodeAll(AsnOutputStream asnOs, int tagClass, int tag) throws MAPException {
- throw new MAPException("UnstructuredSSNotifyResponseIndication has no MAP message primitive");
- }
- /*
- * (non-Javadoc)
- *
- * @see
- * org.mobicents.protocols.ss7.map.primitives.MAPAsnPrimitive#encodeData
- * (org.mobicents.protocols.asn.AsnOutputStream)
- */
- @Override
- public void encodeData(AsnOutputStream asnOs) throws MAPException {
- throw new MAPException("UnstructuredSSNotifyResponseIndication has no MAP message primitive");
- }
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("UnstructuredSSNotifyResponse [");
- sb.append("]");
- return sb.toString();
- }
- }