/** * Creates a <code>PDU</code> instance for the specified {@link MessageProcessingModel}. * @param messageProcessingModel * a message processing model instance. * @return * a PDU that is compatible with the specified message processing model. * @since 2.2 */ @Override public PDU createPDU(MessageProcessingModel messageProcessingModel) { PDU pdu = createPduByMP(messageProcessingModel); applyContextInfoToScopedPDU(pdu); return pdu; }
/** * Creates a <code>PDU</code> instance for the specified {@link MessageProcessingModel}. * @param messageProcessingModel * a message processing model instance. * @return * a PDU that is compatible with the specified message processing model. * @since 2.2 */ @Override public PDU createPDU(MessageProcessingModel messageProcessingModel) { PDU pdu = createPduByMP(messageProcessingModel); applyContextInfoToScopedPDU(pdu); return pdu; }
/** * Creates a <code>PDU</code> instance for the specified {@link MessageProcessingModel} and PDU type. * @param messageProcessingModel * a message processing model instance. * @param pduType * the type for the new PDU. * @return * a PDU that is compatible with the specified message processing model. * @since 2.2 */ public static PDU createPDU(MessageProcessingModel messageProcessingModel, int pduType) { PDU pdu = createPduByMP(messageProcessingModel); pdu.setType(pduType); return pdu; }
/** * Creates a <code>PDU</code> instance for the specified {@link MessageProcessingModel} and PDU type. * @param messageProcessingModel * a message processing model instance. * @param pduType * the type for the new PDU. * @return * a PDU that is compatible with the specified message processing model. * @since 2.2 */ public static PDU createPDU(MessageProcessingModel messageProcessingModel, int pduType) { PDU pdu = createPduByMP(messageProcessingModel); pdu.setType(pduType); return pdu; }