From this external message, figure out the message type.
@externalMessage The external message just received.
@return The message type for this kind of message (transport specific).
340901
public String getMessageVersion(BaseMessage externalMessage)
    {
        String version = null;
        if (!(externalMessage.getExternalMessage() instanceof SoapTrxMessageIn))
            return null;
        SOAPMessage message = (SOAPMessage)((SoapTrxMessageIn)externalMessage.getExternalMessage()).getRawData();
        try {
            // Message creation takes care of creating the SOAPPart - a
            // required part of the message as per the SOAP 1.1
            // specification.
            SOAPPart sp = message.getSOAPPart();
            
            // Retrieve the envelope from the soap part to start building
            // the soap message.
            SOAPEnvelope envelope = sp.getEnvelope();
            
            // Create a soap header from the envelope.
            //?SOAPHeader hdr = envelope.getHeader();
            
            // Get the body
            SOAPBody body = envelope.getBody();
            SOAPElement element = this.getElement(body, null);
            if (element != null)
            {
                QName na = new QName("http://www.w3.org/2001/XMLSchema-instance", "schemaLocation");
                String attribute = element.getAttributeValue(na);
                if (attribute != null)
                {
                    Record recMessageControl = this.getRecord(MessageControlModel.MESSAGE_CONTROL_FILE);
                    if (recMessageControl == null)
                        recMessageControl = Record.makeRecordFromClassName(MessageControlModel.THICK_CLASS, this);
                    version = ((MessageControlModel)recMessageControl).getVersionFromSchemaLocation(attribute);
                }
            }
        } catch(Throwable ex) {
            ex.printStackTrace();
        }
        if (version != null)
            return version;
        return super.getMessageVersion(externalMessage);    // No type found.
    }
1117766
public BaseMessageReceiver getMessageReceiver()
    {
        if (m_receiver == null)
        {
            m_receiver = this.createMessageReceiver();
            if (m_receiver != null)
                new Thread(m_receiver, "MessageReceiver").start();
        }
        return m_receiver;
    }
260739
def type(self):
        """"""
        if self.__type is None:
            message_type = find_definition(
                self.__type_name, self.message_definition())
            if not (message_type is not Message and
                    isinstance(message_type, type) and
                    issubclass(message_type, Message)):
                raise FieldDefinitionError(
                    'Invalid message class: %s' % message_type)
            self.__type = message_type
        return self.__type
1128588
public String getType()
    {
    IVarDef parent = getParent();
    return parent==null? type_ : parent.getType();
    }
61217
private static MessageInfo mapMessageInfo(MessageInfoType messageInfoType) {
        MessageInfo messageInfo = new MessageInfo();
        if (messageInfoType != null) {
            messageInfo.setFlowId(messageInfoType.getFlowId());
            messageInfo.setMessageId(messageInfoType.getMessageId());
            messageInfo.setOperationName(messageInfoType.getOperationName());
            messageInfo.setPortType(messageInfoType.getPorttype() == null
                ? "" : messageInfoType.getPorttype().toString());
            messageInfo.setTransportType(messageInfoType.getTransport());
        }
        return messageInfo;
    }
976611
def report_message_type(self, msg):
        
        desc = get_message_description(self.linter, msg.msg_id)
        self.tc.message('inspectionType', id=msg.msg_id, name=msg.symbol, description=desc, category=msg.category)
1231572
public MessageInfo getMessageInfo() {
        if (messageInfo == null) {
            MessageLine l = firstLine.prev;
            if (l != null && l.isInfo())
                messageInfo = new MessageInfo(l.text);
            else
                messageInfo = MessageInfo.dummyInfo;
        }
        return messageInfo;
    }
603088
public final TrmFirstContactMessageType getMessageType() {
    /* Get the int value and get the corresponding TrmFirstContactMessageType to return      */
    int mType = jmo.getIntField(TrmFirstContactAccess.MESSAGETYPE);
    return TrmFirstContactMessageType.getTrmFirstContactMessageType(mType);
  }
845408
public Class<?> getBoxedType() {
        if (mBoxedType == null) {
            mBoxedType = TypeDesc.forClass(getType()).toObjectType().toClass();
        }
        return mBoxedType;
    }
449438
@Override
    public TYPE getType() {
        final IPortalUrlBuilder portalUrlBuilder = this.portletUrlBuilder.getPortalUrlBuilder();
        final UrlType urlType = portalUrlBuilder.getUrlType();
        return urlType.getPortletUrlType();
    }
681662
protected int getType (ChatMessage message, boolean history)
    {
        String localtype = message.localtype;

        if (message instanceof TellFeedbackMessage) {
            if (((TellFeedbackMessage)message).isFailure()) {
                return ChatLogic.FEEDBACK;
            }
            return (history || isApprovedLocalType(localtype)) ?
                ChatLogic.TELLFEEDBACK : ChatLogic.IGNORECHAT;

        } else if (message instanceof UserMessage) {
            int type = _logic.decodeType(localtype);
            if (type != 0) {
                // factor in the mode
                return _logic.adjustTypeByMode(((UserMessage) message).mode, type);
            }
            // if we're showing from history, include specialized chat messages
            if (history) {
                return ChatLogic.SPECIALIZED;
            }
            // otherwise fall through and IGNORECHAT

        } else if (message instanceof SystemMessage) {
            if (history || isApprovedLocalType(localtype)) {
                switch (((SystemMessage) message).attentionLevel) {
                case SystemMessage.INFO:
                    return ChatLogic.INFO;
                case SystemMessage.FEEDBACK:
                    return ChatLogic.FEEDBACK;
                case SystemMessage.ATTENTION:
                    return ChatLogic.ATTENTION;
                default:
                    log.warning("Unknown attention level for system message", "msg", message);
                }
            }
            return ChatLogic.IGNORECHAT;
        }

        log.warning("Skipping received message of unknown type", "msg", message);
        return ChatLogic.IGNORECHAT;
    }
894800
public String getMessage() {
        if ( this.cause == null ) {
            return super.getMessage() + " Line number: " + this.lineNumber;
        } else {
            return super.getMessage() + " Line number: " + this.lineNumber + ". Caused by: " + this.cause.getMessage();
        }
    }
383856
public int getMessageLength() {
		// Message Type, Identifier length
		int length = 1 + 4;

		// Identifier bytes
		if (this.identifier != null) {
			try {
				length += this.identifier.getBytes("UTF-16BE").length;
			} catch (UnsupportedEncodingException e) {
				log.error("UTF-16BE is unsupported in this environment.");
			}
		}

		// Ticket number
		length += 4;

		// Number of attributes
		length += 4;

		// Each attribute
		if (this.attributes != null) {
			for (Attribute attr : this.attributes) {
				length += attr.getClientLength();
			}
		}

		return length;
	}
1205547
public int getMessageLength() {
    // Message Type, createIdentifier
    int length = 1 + 1;

    // Number of solutions
    length += 4;

    // Each solution
    if (this.attributes != null) {
      for (Attribute attr : this.attributes) {
        length += attr.getSolverLength();
      }
    }

    return length;
  }
827994
public int getMessageLength() {
    // Message type, Id length
    int length = 1 + 4;

    if (this.identifier != null) {
      try {
        length += this.identifier.getBytes("UTF-16BE").length;
      } catch (UnsupportedEncodingException e) {
        log.error("Unable to encode to UTF-16BE.");
      }
    }

    // Attribute name length
    length += 4;

    if (this.attributeName != null) {
      try {
        length += this.attributeName.getBytes("UTF-16BE").length;
      } catch (UnsupportedEncodingException e) {
        log.error("Unable to encode to UTF-16BE.");
      }
    }

    if (this.origin != null) {
      try {
        length += this.origin.getBytes("UTF-16BE").length;
      } catch (UnsupportedEncodingException uee) {
        log.error("Unable to encode to UTF-16BE.");
      }
    }

    return length;
  }
387781
public int getMessageLength() {
    // Message type, number of type specifications
    int length = 1 + 4;

    if (this.attributeSpecifications != null) {
      for (AttributeSpecification spec : this.attributeSpecifications) {
        // alias, Name length, transient byte
        length += (4 + 4 + 1);
        if (spec.getAttributeName() != null) {
          try {
            length += spec.getAttributeName().getBytes("UTF-16BE").length;
          } catch (UnsupportedEncodingException e) {
            log.error("Unable to encode UTF-16BE strings.");
          }
        }
      }
    }

    if (this.origin != null) {
      try {
        length += this.origin.getBytes("UTF-16BE").length;
      } catch (UnsupportedEncodingException e) {
        log.error("Unable to encode UTF-16 strings.");
        e.printStackTrace();
      }
    }

    return length;
  }
319413
public function getType()
    {
        $message = json_decode($this->message);

        return isset($message->Type) ? $message->Type : null;
    }