Package com.isode.x400api
Class X400
- java.lang.Object
-
- com.isode.x400api.X400
-
public class X400 extends java.lang.Object
Provides the X.400 class used to implement the Java bindings to the Isode X.400 API
-
-
Constructor Summary
Constructors Constructor Description X400()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
x400_acp127addstrparam(ACP127Resp acp127resp_obj, int paramtype, java.lang.String value)
Set string parameter from ACP127 Response objectstatic int
x400_acp127respaddintparam(ACP127Resp acp127resp_obj, int value)
Get int parameter from ACP127 Response objectstatic int
x400_acp127respaliget(ACP127Resp resp_obj, int entry, ALI ali_obj)
Create new Address List Indicator object associated with the X400ACP127 Respstatic int
x400_acp127respalinew(ACP127Resp resp_obj, ALI ali_obj)
Create new Address List Indicator object associated with the X400ACP127 Respstatic int
x400_acp127respget(Message msg_obj, ACP127Resp acp127resp_obj)
Get the ACP127 Response object from a recipientstatic int
x400_acp127respgetintparam(ACP127Resp acp127resp_obj)
Set int parameter from ACP127 Response objectstatic int
x400_acp127respgetstrparam(ACP127Resp acp127resp_obj, int paramtype, java.lang.StringBuffer value)
Get string parameter from ACP127 Response objectstatic int
x400_acp127respnew(Message msg_obj, ACP127Resp acp127resp_obj)
Create a P772 ACP127 Response object.static int
x400_addmessagebody(Message message_obj, Message fwd_message_obj)
Add a message body object to a message.static int
x400_aliaddintparam(ALI ali_obj, int paramtype, int value)
Add int-valued parameter to the ALI info objectstatic int
x400_aliaddstrparam(ALI ali_obj, int paramtype, java.lang.String value)
Add string-valued parameter to the ALI info objectstatic int
x400_aliget(Message message_obj, int entry, ALI ali_obj)
Get the Address List Indicator information object from a messagestatic int
x400_aligetintparam(ALI ali_obj, int paramtype)
Get string parameter from Address List Indicator objectstatic int
x400_aligetstrparam(ALI ali_obj, int paramtype, java.lang.StringBuffer value)
Get string parameter from Address List Indicator objectstatic int
x400_alinew(Message message_obj, ALI ali_obj)
Create an Address List Indicator object.static int
x400_bodypartaddbyteparam(BodyPart bp_obj, int paramtype, byte[] value, int len)
Add byte-valued parameter to the body partstatic int
x400_bodypartaddintparam(BodyPart bp_obj, int paramtype, int value)
Add integer-valued parameter to the body partstatic int
x400_bodypartaddstrparam(BodyPart bp_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the body partstatic int
x400_bodypartgetintparam(BodyPart bodypart_obj, int paramtype)
Return a integer-valued parameter from the body part objectstatic int
x400_bodypartgetstrparam(BodyPart bodypart_obj, int paramtype, java.lang.StringBuffer value, byte[] binarydata)
Return a string-valued parameter from the body part objectstatic int
x400_bodypartnew(int bptype, BodyPart bodypart_obj)
Create a new BodyPart object.static int
x400_certget(Recip recip_obj, int entry, Cert cert_obj)
Get certificate object from messagestatic int
x400_certgetbyteparam(Cert cert_obj, int paramtype, byte[] binarydata)
Return a byte-valued parameter from the certificate objectstatic int
x400_certgetintparam(Cert cert_obj, int paramtype)
Return a int-valued parameter from the certificate objectstatic int
x400_certgetstrparam(Cert cert_obj, int paramtype, java.lang.StringBuffer value)
Return a string-valued parameter from the certificate objectstatic int
x400_distfieldaddbyteparam(DistField distfield_obj, int paramtype, byte[] binarydata)
Add byte-valued parameter to the DistField info objectstatic int
x400_distfieldaddstrparam(DistField distfield_obj, int paramtype, java.lang.String value)
Add string-valued parameter to the DistField info objectstatic int
x400_distfieldget(Message message_obj, int entry, DistField distfield_obj)
Get the Distribution Code extension Field object from a messagestatic int
x400_distfieldgetbyteparam(DistField distfield_obj, int paramtype, byte[] binarydata)
Get byte-valued parameter to the DistField info objectstatic int
x400_distfieldgetstrparam(DistField distfield_obj, int paramtype, java.lang.StringBuffer value)
Get string parameter from Distribution Code extension Field objectstatic int
x400_distfieldnew(Message message_obj, DistField distfield_obj)
Create a P772 Distribution Code extension Field object.static int
x400_DLaddstrparam(DLExpHist dleh_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the X400DLExpHist objectstatic int
x400_DLexphistdelete(DLExpHist dleh_obj)
Delete the DL Expansion History objectstatic int
x400_DLexphistget(Message message_obj, int entry, DLExpHist dleh_obj)
Create a new DL Expansion History object from the message objectstatic int
x400_DLexphistnew(Message message_obj, DLExpHist dleh_obj)
Create a new X400DLExpHist objectstatic int
x400_DLgetstrparam(DLExpHist dleh_obj, int paramtype, java.lang.StringBuffer value)
Return a string parameter from the DL Expansion History objectstatic int
x400_initializelogging(java.lang.String myname, java.lang.String xmlfile)
Initializes logging.static int
x400_internaltraceinfoaddintparam(InternalTraceinfo internaltraceinfo_obj, int paramtype, int value)
Set an integer value in an Internal Trace Info objectstatic int
x400_internaltraceinfoaddstrparam(InternalTraceinfo internaltraceinfo_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the Internal Trace info objectstatic int
x400_internaltraceinfoget(Message message_obj, int entry, InternalTraceinfo internaltraceinfo_obj)
Get the Trace information object from a messagestatic int
x400_internaltraceinfogetintparam(InternalTraceinfo internaltraceinfo_obj, int paramtype)
Get string parameter from Internal Trace Information objectstatic int
x400_internaltraceinfogetstrparam(InternalTraceinfo internaltraceinfo_obj, int paramtype, java.lang.StringBuffer value)
Get the InternalTrace information object from a messagestatic int
x400_internaltraceinfonew(Message message_obj, InternalTraceinfo internaltraceinfo_obj)
Create a new Trace information object.static int
x400_msgaddattachment(Message message_obj, int paramtype, java.lang.String value, int len, byte[] binarydata)
Add an attachment to the messagestatic int
x400_msgaddbodypart(Message message_obj, BodyPart bp_obj)
Add a body part object to a message.static int
x400_msgaddbyteparam(Message message_obj, int paramtype, byte[] binarydata)
Add byte-valued parameter to a message objectstatic int
x400_msgaddintparam(Message message_obj, int paramtype, int value)
Add integer-valued parameter to the messagestatic int
x400_msgaddmessagebodywtype(Message message_obj, Message fw_message_obj, int type)
Add a message body part object to a messagestatic int
x400_msgaddrecip(Message message_obj, int reciptype, Recip recip_obj)
Add a recipient object to the messagestatic int
x400_msgaddstrparam(Message message_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the messagestatic int
x400_msgcountrecip(Message message_obj, int type)
Returns count of addresses of given type in message objectstatic int
x400_msgfree(Message message_obj)
Free messagestatic int
x400_msggetattachment(Message message_obj, int number, java.lang.StringBuffer value, byte[] binarydata)
Return data from a simple attachment Not all X.400 body part types can be returned from a message in this way.static int
x400_msggetbodypart(Message message_obj, int number, BodyPart bp_obj)
Return a pointer to a body part object.static int
x400_msggetbyteparam(Message message_obj, int paramtype, byte[] binarydata)
Get byte-valued parameter to a message objectstatic int
x400_msggetintparam(Message message_obj, int paramtype)
Return a integer-valued parameter from the message objectstatic int
x400_msggetmessagebody(Message message_obj, int number, Message message_body_obj)
Return a pointer to a body part object Returns a message from the specified body partstatic int
x400_msggetrecip(Message message_obj, int type, int num, Recip recip_obj)
Get recipient object from messagestatic int
x400_msggetstrparam(Message message_obj, int paramtype, java.lang.StringBuffer value)
Return a string-valued parameter from the message objectstatic int
x400_msgnew(int msgtype, Message message_obj)
Create new messagestatic int
x400_msgnewfrombuffer(byte[] buf, Message message_obj)
Generate a Message object from a message encoding.static int
x400_oranddladdstrparam(ORandDL oranddl_obj, int paramtype, java.lang.String value)
Add string parameter for a Originator and DL Expansion History objectstatic int
x400_oranddlget(Message message_obj, int entry, ORandDL oranddl_obj)
Get Originator and DL expansion history objectstatic int
x400_oranddlgetstrparam(ORandDL oranddl_obj, int paramtype, java.lang.StringBuffer value)
Get string parameter from ACP127 Response objectstatic int
x400_oranddlnew(Message message_obj, ORandDL oranddl_obj)
Create new Originator and DL Expansion history objectstatic int
x400_otherrecipaddintparam(OtherRecip otherrecip_obj, int value)
Set int parameter from Other Recipient objectstatic int
x400_otherrecipaddstrparam(OtherRecip otherrecip_obj, java.lang.String value)
Set string parameter from Other Recipient objectstatic int
x400_otherrecipget(Message message_obj, int entry, OtherRecip otherrecip_obj)
Get a new P772 Other Recipient object for a message objectstatic int
x400_otherrecipgetintparam(OtherRecip otherrecip_obj)
Get int parameter from Other Recipient objectstatic int
x400_otherrecipgetstrparam(OtherRecip otherrecip_obj, java.lang.StringBuffer value)
Get string parameter from Other Recipient objectstatic int
x400_otherrecipnew(Message message_obj, OtherRecip otherrecip_obj)
Create a new P772 Other Recipient object for a message objectstatic int
x400_pssaddstrparam(PSS pss_obj, java.lang.String value)
Add string-valued parameter to the PSS info objectstatic int
x400_pssget(Message message_obj, int entry, PSS pss_obj, int type)
Get the Printable String Sequence object from a messagestatic int
x400_pssgetstrparam(PSS pss_obj, java.lang.StringBuffer value)
Get string parameter from Printable String Sequence objectstatic int
x400_pssnew(Message message_obj, PSS pss_obj, int type)
Create a Printable String Sequence object.static int
x400_recipaddintparam(Recip recip_obj, int paramtype, int value)
Add integer-valued parameter to the recipientstatic int
x400_recipaddstrparam(Recip recip_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the recipientstatic int
x400_recipget(Message message_obj, int type, int num, Recip recip_obj)
Get recipient object from messagestatic int
x400_recipgetintparam(Recip recip_obj, int paramtype)
Return a integer-valued parameter from the recipient objectstatic int
x400_recipgetstrparam(Recip recip_obj, int paramtype, java.lang.StringBuffer value)
Return a string-valued parameter from the recipient objectstatic int
x400_recipnew(int reciptype, Recip recip_obj)
Create a new recipient object There are several different types for recipient object.static int
x400_redihistaddintparam(RediHist redihist_obj, int paramtype, int value)
Set an integer value in a Redirection History objectstatic int
x400_redihistaddstrparam(RediHist redihist_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the X400RediHist objectstatic int
x400_redihistget(Recip recip_obj, int entry, RediHist redihist_obj)
Get the Redirection History object from a recipientstatic int
x400_redihistgetintparam(RediHist redihist_obj, int paramtype)
Get int-valued parameter from the X400RediHist objectstatic int
x400_redihistgetstrparam(RediHist redihist_obj, int paramtype, java.lang.StringBuffer value)
Get string-valued parameter from the X400RediHist objectstatic int
x400_redihistnew(Recip recip_obj, RediHist redihist_obj)
Create a new Redirection History objectstatic int
x400_setcontentoctets(Message message_obj, byte[] binarydata)
Takes a byte stream containing the ASN.1 encoding of a P22 (or P772) content, decodes it and sets it into a message, so that attributes can be extracted from it.static int
x400_traceinfoaddintparam(Traceinfo traceinfo_obj, int paramtype, int value)
Set an integer value in a Trace Info objectstatic int
x400_traceinfoaddstrparam(Traceinfo traceinfo_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the X400TraceInfo objectstatic int
x400_traceinfoget(Message message_obj, int entry, Traceinfo traceinfo_obj, int type)
Get the Trace information object from a messagestatic int
x400_traceinfogetintparam(Traceinfo traceinfo_obj, int paramtype)
Get int parameter from Trace Information objectstatic int
x400_traceinfogetstrparam(Traceinfo traceinfo_obj, int paramtype, java.lang.StringBuffer value)
Get string parameter from Trace Information objectstatic int
x400_traceinfonew(Message message_obj, Traceinfo traceinfo_obj, int type)
Create a new Trace information object.
-
-
-
Method Detail
-
x400_msgnewfrombuffer
public static int x400_msgnewfrombuffer(byte[] buf, Message message_obj)
Generate a Message object from a message encoding.- Parameters:
buf
- Encoding of Messagemessage_obj
- Message object
-
x400_msgnew
public static int x400_msgnew(int msgtype, Message message_obj)
Create new message- Parameters:
msgtype
- Message typemessage_obj
- Message object
-
x400_msgfree
public static int x400_msgfree(Message message_obj)
Free message- Parameters:
message_obj
- Message object
-
x400_recipnew
public static int x400_recipnew(int reciptype, Recip recip_obj)
Create a new recipient object There are several different types for recipient object. Normal recipients can be specified separately for the envelope (i.e. controlling where the message actually goes) and the header which is part of the content. They can also be specified together. A separate type of recipient is the reported recipient which appears in a report content. - X400_RECIP_PRIMARY Primary recipient in header - X400_RECIP_CC Carbon copy recipient in header - X400_RECIP_BCC Blind copy recipient in header - X400_RECIP_REPLY Reply-recipient in header - X400_RECIP_ENVELOPE Actual recipient in envelope - X400_RECIP_REPORT Reported recipient in report content - X400_RECIP_INTENDED Originally intended recipient in report content - X400_ORIGINATOR Originator address in IPM header - X400_AUTH_ORIG Authorizing originator address in IPM header To set a given recipient in both envelope and header, add together the values, e.g. X400_RECIP_PRIMARY + X400_RECIP_ENVELOPE. The value X400_RECIP_STANDARD is a shorthand for this combination.- Parameters:
reciptype
- Recipient typerecip_obj
- Recipient object to be returned from API
-
x400_bodypartnew
public static int x400_bodypartnew(int bptype, BodyPart bodypart_obj)
Create a new BodyPart object.- Parameters:
bptype
- Bodypart typebodypart_obj
- Bodypart object to be returned from API
-
x400_bodypartaddstrparam
public static int x400_bodypartaddstrparam(BodyPart bp_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the body part- Parameters:
bp_obj
- Bodypart object from MSBodypartNewparamtype
- Type of parameter to be addedvalue
- String to be added as paramtypelen
- [IGNORED] length of string to be added (-1 for NULL terminated) Please note that the len parameter is now ignored
-
x400_bodypartaddbyteparam
public static int x400_bodypartaddbyteparam(BodyPart bp_obj, int paramtype, byte[] value, int len)
Add byte-valued parameter to the body part- Parameters:
bp_obj
- Bodypart object from MSBodypartNewparamtype
- Type of parameter to be addedvalue
- Byte array to be added as the valuelen
- size of the byte array to be added
-
x400_bodypartaddintparam
public static int x400_bodypartaddintparam(BodyPart bp_obj, int paramtype, int value)
Add integer-valued parameter to the body part- Parameters:
bp_obj
- Bodypart object from MSRecipNewparamtype
- Type of parameter to be addedvalue
- Integer to be added as paramtype
-
x400_recipaddstrparam
public static int x400_recipaddstrparam(Recip recip_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the recipient- Parameters:
recip_obj
- Recipient object from MSRecipNewparamtype
- Type of parameter to be addedvalue
- String to be added as paramtypelen
- [IGNORED] length of string to be added (-1 for NULL terminated) Please note that the len parameter is now ignored
-
x400_recipaddintparam
public static int x400_recipaddintparam(Recip recip_obj, int paramtype, int value)
Add integer-valued parameter to the recipient- Parameters:
recip_obj
- Recipient object from MSRecipNewparamtype
- Type of parameter to be addedvalue
- Integer to be added as paramtype
-
x400_msgaddstrparam
public static int x400_msgaddstrparam(Message message_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the message- Parameters:
message_obj
- Message object from MSMsgNewparamtype
- Type of parameter to be addedvalue
- String to be added as paramtypelen
- [IGNORED] length of string to be added (-1 for NULL terminated) Please note that the len parameter is now ignored
-
x400_msgaddintparam
public static int x400_msgaddintparam(Message message_obj, int paramtype, int value)
Add integer-valued parameter to the message- Parameters:
message_obj
- Message object from MSMsgNewparamtype
- Type of parameter to be addedvalue
- integer to be added as paramtype
-
x400_msggetstrparam
public static int x400_msggetstrparam(Message message_obj, int paramtype, java.lang.StringBuffer value)
Return a string-valued parameter from the message object- Parameters:
message_obj
- Message object from MSMsgNewparamtype
- Type of parameter to be returnedvalue
- String object into which to return the value
-
x400_msggetintparam
public static int x400_msggetintparam(Message message_obj, int paramtype)
Return a integer-valued parameter from the message object- Parameters:
message_obj
- Message object from MSMsgNewparamtype
- Type of parameter to be returned
-
x400_msggetrecip
public static int x400_msggetrecip(Message message_obj, int type, int num, Recip recip_obj)
Get recipient object from message- Parameters:
message_obj
- Message object from MSMsgGettype
- Type of recipientrecip_obj
- Recipient object to be returned
-
x400_recipget
public static int x400_recipget(Message message_obj, int type, int num, Recip recip_obj)
Get recipient object from message- Parameters:
message_obj
- Message object from MsgGettype
- Type of recipientrecip_obj
- Recipient object to be returned
-
x400_recipgetintparam
public static int x400_recipgetintparam(Recip recip_obj, int paramtype)
Return a integer-valued parameter from the recipient object- Parameters:
recip_obj
- Recipient object from MSMsgGetRecipparamtype
- Type of parameter to be returned
-
x400_recipgetstrparam
public static int x400_recipgetstrparam(Recip recip_obj, int paramtype, java.lang.StringBuffer value)
Return a string-valued parameter from the recipient object- Parameters:
recip_obj
- Recipient object from MSMsgGetRecipparamtype
- Type of parameter to be returnedvalue
- String object into which to return the value
-
x400_msgaddrecip
public static int x400_msgaddrecip(Message message_obj, int reciptype, Recip recip_obj)
Add a recipient object to the message- Parameters:
message_obj
- Message objectreciptype
- Recipient typerecip_obj
- Recipient object from API
-
x400_msgaddattachment
public static int x400_msgaddattachment(Message message_obj, int paramtype, java.lang.String value, int len, byte[] binarydata)
Add an attachment to the message- Parameters:
message_obj
- Message objectparamtype
- Type of attachmentvalue
- String value for attachmentlen
- Length of attachmentbinarydata
- data for binary attachments
-
x400_msgaddbodypart
public static int x400_msgaddbodypart(Message message_obj, BodyPart bp_obj)
Add a body part object to a message.- Parameters:
message_obj
- Message objectbp_obj
- Bodypart object to add to the message
-
x400_addmessagebody
public static int x400_addmessagebody(Message message_obj, Message fwd_message_obj)
Add a message body object to a message. Deprecated use X400MsgAddMessageBodyWType instead.- Parameters:
message_obj
- Message objectfwd_message_obj
- Message object to add as bodypart
-
x400_msgaddmessagebodywtype
public static int x400_msgaddmessagebodywtype(Message message_obj, Message fw_message_obj, int type)
Add a message body part object to a message- Parameters:
message_obj
- Message objectfw_message_obj
- Message object to be added as BodyParttype
- Bodypart type (X400_T_MESSAGE)
-
x400_bodypartgetintparam
public static int x400_bodypartgetintparam(BodyPart bodypart_obj, int paramtype)
Return a integer-valued parameter from the body part object- Parameters:
bodypart_obj
- BodyPart object from X400msMsgGetBodypartparamtype
- Type of parameter to be returned
-
x400_bodypartgetstrparam
public static int x400_bodypartgetstrparam(BodyPart bodypart_obj, int paramtype, java.lang.StringBuffer value, byte[] binarydata)
Return a string-valued parameter from the body part object- Parameters:
bodypart_obj
- BodyPart object from X400msMsgGetBodypartparamtype
- Type of parameter to be returnedvalue
- String object into which to return the valuebinarydata
- data for binary attachments
-
x400_msggetattachment
public static int x400_msggetattachment(Message message_obj, int number, java.lang.StringBuffer value, byte[] binarydata)
Return data from a simple attachment Not all X.400 body part types can be returned from a message in this way. If the type is such that a X400Bodypart is needed, then the error X400_E_COMPLEX_BODY is returned. If the type is a forwarded message or returned IPM, then X400_E_MESSAGE_BODY is returned.- Parameters:
message_obj
- Message objectnumber
- Bodypart number
-
x400_msggetbodypart
public static int x400_msggetbodypart(Message message_obj, int number, BodyPart bp_obj)
Return a pointer to a body part object.- Parameters:
message_obj
- Message objectnumber
- Bodypart numberbp_obj
- BodyPart object returned
-
x400_msggetmessagebody
public static int x400_msggetmessagebody(Message message_obj, int number, Message message_body_obj)
Return a pointer to a body part object Returns a message from the specified body part- Parameters:
message_obj
- Message objectnumber
- Bodypart numbermessage_body_obj
- Message object body part
-
x400_msgcountrecip
public static int x400_msgcountrecip(Message message_obj, int type)
Returns count of addresses of given type in message object- Parameters:
message_obj
- Message objecttype
- Type of address to count
-
x400_DLexphistnew
public static int x400_DLexphistnew(Message message_obj, DLExpHist dleh_obj)
Create a new X400DLExpHist object- Parameters:
message_obj
- Message objectdleh_obj
- Distribution List Expansion History object
-
x400_DLexphistget
public static int x400_DLexphistget(Message message_obj, int entry, DLExpHist dleh_obj)
Create a new DL Expansion History object from the message object- Parameters:
message_obj
- Message objectentry
- DL history object referencedleh_obj
- Distribution List Expansion History object
-
x400_DLexphistdelete
public static int x400_DLexphistdelete(DLExpHist dleh_obj)
Delete the DL Expansion History object- Parameters:
dleh_obj
- Distribution List Expansion History object
-
x400_DLgetstrparam
public static int x400_DLgetstrparam(DLExpHist dleh_obj, int paramtype, java.lang.StringBuffer value)
Return a string parameter from the DL Expansion History object- Parameters:
dleh_obj
- Message objectparamtype
- Type of parameter to be returnedvalue
- String object into which to return the value
-
x400_DLaddstrparam
public static int x400_DLaddstrparam(DLExpHist dleh_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the X400DLExpHist object- Parameters:
dleh_obj
- Message objectparamtype
- Type of parameter to be addedvalue
- String object to add the valuelen
- String object to add the value
-
x400_traceinfonew
public static int x400_traceinfonew(Message message_obj, Traceinfo traceinfo_obj, int type)
Create a new Trace information object.- Parameters:
message_obj
- Message objecttraceinfo_obj
- Trace info object
-
x400_traceinfoget
public static int x400_traceinfoget(Message message_obj, int entry, Traceinfo traceinfo_obj, int type)
Get the Trace information object from a message- Parameters:
message_obj
- Message objectentry
- Trace Info object referencetraceinfo_obj
- Trace Info objecttype
- Trace Info type
-
x400_traceinfogetstrparam
public static int x400_traceinfogetstrparam(Traceinfo traceinfo_obj, int paramtype, java.lang.StringBuffer value)
Get string parameter from Trace Information object- Parameters:
traceinfo_obj
- Traceinfo objectparamtype
- Type of parameter to be returnedvalue
- String object into which to return the value
-
x400_traceinfogetintparam
public static int x400_traceinfogetintparam(Traceinfo traceinfo_obj, int paramtype)
Get int parameter from Trace Information object- Parameters:
traceinfo_obj
- Traceinfo objectparamtype
- Type of parameter to be returned
-
x400_traceinfoaddstrparam
public static int x400_traceinfoaddstrparam(Traceinfo traceinfo_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the X400TraceInfo object- Parameters:
traceinfo_obj
- Traceinfo objectparamtype
- Type of parameter to be addedvalue
- String object to add the valuelen
- String object to add the value
-
x400_traceinfoaddintparam
public static int x400_traceinfoaddintparam(Traceinfo traceinfo_obj, int paramtype, int value)
Set an integer value in a Trace Info object- Parameters:
traceinfo_obj
- Message object from TraceInfoNewparamtype
- Type of parameter to be addedvalue
- integer to be added as paramtype
-
x400_internaltraceinfonew
public static int x400_internaltraceinfonew(Message message_obj, InternalTraceinfo internaltraceinfo_obj)
Create a new Trace information object.- Parameters:
message_obj
- Message objectinternaltraceinfo_obj
- Internal Trace info object
-
x400_internaltraceinfoget
public static int x400_internaltraceinfoget(Message message_obj, int entry, InternalTraceinfo internaltraceinfo_obj)
Get the Trace information object from a message- Parameters:
message_obj
- Message objectentry
- Trace Info object referenceinternaltraceinfo_obj
- Trace Info object
-
x400_internaltraceinfogetstrparam
public static int x400_internaltraceinfogetstrparam(InternalTraceinfo internaltraceinfo_obj, int paramtype, java.lang.StringBuffer value)
Get the InternalTrace information object from a message- Parameters:
internaltraceinfo_obj
- Internaltraceinfo objectparamtype
- Type of parameter to be returnedvalue
- String object into which to return the value
-
x400_internaltraceinfogetintparam
public static int x400_internaltraceinfogetintparam(InternalTraceinfo internaltraceinfo_obj, int paramtype)
Get string parameter from Internal Trace Information object- Parameters:
internaltraceinfo_obj
- Internaltraceinfo objectparamtype
- Type of parameter to be returned
-
x400_internaltraceinfoaddstrparam
public static int x400_internaltraceinfoaddstrparam(InternalTraceinfo internaltraceinfo_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the Internal Trace info object- Parameters:
internaltraceinfo_obj
- Internaltraceinfo objectparamtype
- Type of parameter to be addedvalue
- String object to add the valuelen
- String object to add the value
-
x400_internaltraceinfoaddintparam
public static int x400_internaltraceinfoaddintparam(InternalTraceinfo internaltraceinfo_obj, int paramtype, int value)
Set an integer value in an Internal Trace Info object- Parameters:
internaltraceinfo_obj
- Message object from InternaltraceinfoNewparamtype
- Type of parameter to be addedvalue
- integer to be added as paramtype
-
x400_redihistnew
public static int x400_redihistnew(Recip recip_obj, RediHist redihist_obj)
Create a new Redirection History object- Parameters:
recip_obj
- Recipient objectredihist_obj
- Redirection History object
-
x400_redihistget
public static int x400_redihistget(Recip recip_obj, int entry, RediHist redihist_obj)
Get the Redirection History object from a recipient- Parameters:
recip_obj
- Recipient objectentry
- Redirection History object referenceredihist_obj
- Redirection History object
-
x400_redihistgetstrparam
public static int x400_redihistgetstrparam(RediHist redihist_obj, int paramtype, java.lang.StringBuffer value)
Get string-valued parameter from the X400RediHist object- Parameters:
redihist_obj
- Redirection History objectparamtype
- Type of parameter to be returnedvalue
- String object into which to return the value
-
x400_redihistgetintparam
public static int x400_redihistgetintparam(RediHist redihist_obj, int paramtype)
Get int-valued parameter from the X400RediHist object- Parameters:
redihist_obj
- Redirection History objectparamtype
- Type of parameter to be returned
-
x400_redihistaddstrparam
public static int x400_redihistaddstrparam(RediHist redihist_obj, int paramtype, java.lang.String value, int len)
Add string-valued parameter to the X400RediHist object- Parameters:
redihist_obj
- Redirection History objectparamtype
- Type of parameter to be addedvalue
- String object to add the valuelen
- String object to add the value
-
x400_redihistaddintparam
public static int x400_redihistaddintparam(RediHist redihist_obj, int paramtype, int value)
Set an integer value in a Redirection History object- Parameters:
redihist_obj
- Message object from RediHistNewparamtype
- Type of parameter to be addedvalue
- integer to be added as paramtype
-
x400_oranddlnew
public static int x400_oranddlnew(Message message_obj, ORandDL oranddl_obj)
Create new Originator and DL Expansion history object- Parameters:
message_obj
- Message objectoranddl_obj
- ORandDL object
-
x400_oranddlget
public static int x400_oranddlget(Message message_obj, int entry, ORandDL oranddl_obj)
Get Originator and DL expansion history object- Parameters:
message_obj
- Message objectentry
- ORandDL object referenceoranddl_obj
- ORandDL object
-
x400_oranddlgetstrparam
public static int x400_oranddlgetstrparam(ORandDL oranddl_obj, int paramtype, java.lang.StringBuffer value)
Get string parameter from ACP127 Response object- Parameters:
oranddl_obj
- ORandDL objectparamtype
- Type of parameter to be returnedvalue
- String object into which to return the value
-
x400_oranddladdstrparam
public static int x400_oranddladdstrparam(ORandDL oranddl_obj, int paramtype, java.lang.String value)
Add string parameter for a Originator and DL Expansion History object- Parameters:
oranddl_obj
- ORandDL objectparamtype
- Type of parameter to be addedvalue
- String object to add the value
-
x400_pssnew
public static int x400_pssnew(Message message_obj, PSS pss_obj, int type)
Create a Printable String Sequence object.- Parameters:
message_obj
- Message objectpss_obj
- PSS objecttype
- Printable String Syntax type. X400_S_HANDLING_INSTRUCTIONS / X400_S_MESSAGE_INSTRUCTIONS / X400_S_DIST_CODES_SIC
-
x400_pssget
public static int x400_pssget(Message message_obj, int entry, PSS pss_obj, int type)
Get the Printable String Sequence object from a message- Parameters:
message_obj
- Message objectentry
- PSS object referencepss_obj
- PSS objecttype
- Printable String Syntax type. X400_S_HANDLING_INSTRUCTIONS / X400_S_MESSAGE_INSTRUCTIONS / X400_S_DIST_CODES_SIC
-
x400_pssgetstrparam
public static int x400_pssgetstrparam(PSS pss_obj, java.lang.StringBuffer value)
Get string parameter from Printable String Sequence object- Parameters:
pss_obj
- PSS objectvalue
- String object into which to return the value
-
x400_pssaddstrparam
public static int x400_pssaddstrparam(PSS pss_obj, java.lang.String value)
Add string-valued parameter to the PSS info object- Parameters:
pss_obj
- PSS objectvalue
- String object to add the value
-
x400_alinew
public static int x400_alinew(Message message_obj, ALI ali_obj)
Create an Address List Indicator object.- Parameters:
message_obj
- Message objectali_obj
- ALI object
-
x400_aliget
public static int x400_aliget(Message message_obj, int entry, ALI ali_obj)
Get the Address List Indicator information object from a message- Parameters:
message_obj
- Message objectentry
- ALI object referenceali_obj
- ALI object
-
x400_aligetstrparam
public static int x400_aligetstrparam(ALI ali_obj, int paramtype, java.lang.StringBuffer value)
Get string parameter from Address List Indicator object- Parameters:
ali_obj
- ALI objectparamtype
- Type of parameter to be fetchedvalue
- String object into which to return the value
-
x400_aliaddstrparam
public static int x400_aliaddstrparam(ALI ali_obj, int paramtype, java.lang.String value)
Add string-valued parameter to the ALI info object- Parameters:
ali_obj
- ALI objectparamtype
- Type of parameter to be addedvalue
- String object to add the value
-
x400_aliaddintparam
public static int x400_aliaddintparam(ALI ali_obj, int paramtype, int value)
Add int-valued parameter to the ALI info object- Parameters:
ali_obj
- Message object from X400ALINewparamtype
- Type of parameter to be addedvalue
- integer to be added as paramtype
-
x400_aligetintparam
public static int x400_aligetintparam(ALI ali_obj, int paramtype)
Get string parameter from Address List Indicator object- Parameters:
ali_obj
- ALI objectparamtype
- Type of parameter to be returned
-
x400_otherrecipnew
public static int x400_otherrecipnew(Message message_obj, OtherRecip otherrecip_obj)
Create a new P772 Other Recipient object for a message object- Parameters:
message_obj
- Message objectotherrecip_obj
- OtherRecip object
-
x400_otherrecipget
public static int x400_otherrecipget(Message message_obj, int entry, OtherRecip otherrecip_obj)
Get a new P772 Other Recipient object for a message object- Parameters:
message_obj
- Message objectentry
- OtherRecip object referenceotherrecip_obj
- OtherRecip object
-
x400_otherrecipgetstrparam
public static int x400_otherrecipgetstrparam(OtherRecip otherrecip_obj, java.lang.StringBuffer value)
Get string parameter from Other Recipient object- Parameters:
otherrecip_obj
- OtherRecip objectvalue
- String object into which to return the value
-
x400_otherrecipaddstrparam
public static int x400_otherrecipaddstrparam(OtherRecip otherrecip_obj, java.lang.String value)
Set string parameter from Other Recipient object- Parameters:
otherrecip_obj
- OtherRecip objectvalue
- String object to add the value
-
x400_otherrecipaddintparam
public static int x400_otherrecipaddintparam(OtherRecip otherrecip_obj, int value)
Set int parameter from Other Recipient object- Parameters:
otherrecip_obj
- Message object from X400OtherRecipNewvalue
- integer to be added
-
x400_otherrecipgetintparam
public static int x400_otherrecipgetintparam(OtherRecip otherrecip_obj)
Get int parameter from Other Recipient object- Parameters:
otherrecip_obj
- otherrecip object
-
x400_acp127respnew
public static int x400_acp127respnew(Message msg_obj, ACP127Resp acp127resp_obj)
Create a P772 ACP127 Response object.- Parameters:
msg_obj
- Message objectacp127resp_obj
- ACP127Resp object
-
x400_acp127respget
public static int x400_acp127respget(Message msg_obj, ACP127Resp acp127resp_obj)
Get the ACP127 Response object from a recipient- Parameters:
msg_obj
- Recipient objectacp127resp_obj
- ACP127Resp object
-
x400_acp127respgetstrparam
public static int x400_acp127respgetstrparam(ACP127Resp acp127resp_obj, int paramtype, java.lang.StringBuffer value)
Get string parameter from ACP127 Response object- Parameters:
acp127resp_obj
- ACP127Resp objectparamtype
- Type of parameter to be returnedvalue
- String object into which to return the value
-
x400_acp127addstrparam
public static int x400_acp127addstrparam(ACP127Resp acp127resp_obj, int paramtype, java.lang.String value)
Set string parameter from ACP127 Response object- Parameters:
acp127resp_obj
- ACP127Resp objectparamtype
- Type of parameter to be addedvalue
- String object to add the value
-
x400_acp127respaddintparam
public static int x400_acp127respaddintparam(ACP127Resp acp127resp_obj, int value)
Get int parameter from ACP127 Response object- Parameters:
acp127resp_obj
- Message object from X400ACP127RespNewvalue
- integer to be added
-
x400_acp127respgetintparam
public static int x400_acp127respgetintparam(ACP127Resp acp127resp_obj)
Set int parameter from ACP127 Response object- Parameters:
acp127resp_obj
- ACP127Resp object
-
x400_acp127respalinew
public static int x400_acp127respalinew(ACP127Resp resp_obj, ALI ali_obj)
Create new Address List Indicator object associated with the X400ACP127 Resp- Parameters:
resp_obj
- ACP127Resp objectali_obj
- Address List Indicator object
-
x400_acp127respaliget
public static int x400_acp127respaliget(ACP127Resp resp_obj, int entry, ALI ali_obj)
Create new Address List Indicator object associated with the X400ACP127 Resp- Parameters:
resp_obj
- ACP127Resp objectentry
- ALI entry ACP127Resp ALI object referenceali_obj
- ALI object ALI object
-
x400_distfieldnew
public static int x400_distfieldnew(Message message_obj, DistField distfield_obj)
Create a P772 Distribution Code extension Field object.- Parameters:
message_obj
- Message objectdistfield_obj
- DistField object
-
x400_distfieldget
public static int x400_distfieldget(Message message_obj, int entry, DistField distfield_obj)
Get the Distribution Code extension Field object from a message- Parameters:
message_obj
- Message objectentry
- DistField object referencedistfield_obj
- DistField object
-
x400_distfieldgetstrparam
public static int x400_distfieldgetstrparam(DistField distfield_obj, int paramtype, java.lang.StringBuffer value)
Get string parameter from Distribution Code extension Field object- Parameters:
distfield_obj
- DistField objectparamtype
- Type of parameter to be fetchedvalue
- String object into which to return the value
-
x400_distfieldaddstrparam
public static int x400_distfieldaddstrparam(DistField distfield_obj, int paramtype, java.lang.String value)
Add string-valued parameter to the DistField info object- Parameters:
distfield_obj
- DistField objectparamtype
- Type of parameter to be addedvalue
- String object to add the value
-
x400_distfieldaddbyteparam
public static int x400_distfieldaddbyteparam(DistField distfield_obj, int paramtype, byte[] binarydata)
Add byte-valued parameter to the DistField info object- Parameters:
distfield_obj
- DistField object from X400DistFieldNew or X400DistFieldGetparamtype
- Type of parameter to be addedbinarydata
- Byte array with the binary data Please note that the len parameter is now ignored
-
x400_distfieldgetbyteparam
public static int x400_distfieldgetbyteparam(DistField distfield_obj, int paramtype, byte[] binarydata)
Get byte-valued parameter to the DistField info object- Parameters:
distfield_obj
- DistField object from X400DistFieldNew or X400DistFieldGetparamtype
- Type of parameter to be returnedbinarydata
- Byte array with the binary data
-
x400_msgaddbyteparam
public static int x400_msgaddbyteparam(Message message_obj, int paramtype, byte[] binarydata)
Add byte-valued parameter to a message object- Parameters:
message_obj
- Message object from MSMsgNewparamtype
- Type of parameter to be addedbinarydata
- Byte array with the binary data Please note that the len parameter is now ignored
-
x400_msggetbyteparam
public static int x400_msggetbyteparam(Message message_obj, int paramtype, byte[] binarydata)
Get byte-valued parameter to a message object- Parameters:
message_obj
- Message object from MsgNewparamtype
- Type of parameter to be returnedbinarydata
- Byte array with the binary data
-
x400_certget
public static int x400_certget(Recip recip_obj, int entry, Cert cert_obj)
Get certificate object from message- Parameters:
recip_obj
- Recipient objectentry
- Certificate object referencecert_obj
- Certificate object
-
x400_certgetstrparam
public static int x400_certgetstrparam(Cert cert_obj, int paramtype, java.lang.StringBuffer value)
Return a string-valued parameter from the certificate object- Parameters:
cert_obj
- Certificate objectparamtype
- Type of parameter to be returnedvalue
- String object into which to return the value
-
x400_certgetintparam
public static int x400_certgetintparam(Cert cert_obj, int paramtype)
Return a int-valued parameter from the certificate object- Parameters:
cert_obj
- Certificate objectparamtype
- Type of parameter to be returned
-
x400_certgetbyteparam
public static int x400_certgetbyteparam(Cert cert_obj, int paramtype, byte[] binarydata)
Return a byte-valued parameter from the certificate object- Parameters:
cert_obj
- Certificate objectparamtype
- Type of parameter to be returnedbinarydata
- Byte array with the binary data
-
x400_setcontentoctets
public static int x400_setcontentoctets(Message message_obj, byte[] binarydata)
Takes a byte stream containing the ASN.1 encoding of a P22 (or P772) content, decodes it and sets it into a message, so that attributes can be extracted from it.- Parameters:
message_obj
- Message objectbinarydata
- Byte array with the message content
-
x400_initializelogging
public static int x400_initializelogging(java.lang.String myname, java.lang.String xmlfile)
Initializes logging.- Parameters:
myname
- Application namexmlfile
- Logging configuration filename or full path
-
-