|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.americancoders.edi.OutgoingEDIMail
Class to send EDI Documents via Internet Mail
Class contains a main method to allow it to invoked as an application.
format: java com.americancoders.edi.OutgoingEDIMail hostid userid toWhom filename
where hostid is the name of your incoming mail server
userid mailid to get mail
toWhom userid to receive file
filename file to be mailed, file will be wrapped around MIME type applicaiton/edi/x12
OBOE - Open Business Objects for EDI
An EDI and XML Translator Written In Java
Copyright 1998-2000 - American Coders, LTD - Raleigh NC USA
All rights reserved
American Coders, Ltd
P. O. Box 97462
Raleigh, NC 27624 USA
1-919-846-2014
http://www.americancoders.com
Constructor Summary | |
OutgoingEDIMail(java.lang.String inHost,
java.lang.String inUser)
construct with host, user protocol. |
|
OutgoingEDIMail(java.lang.String inHost,
java.lang.String inUser,
java.lang.String inProtocol)
construct with host, user protocol. |
|
OutgoingEDIMail(java.lang.String inHost,
java.lang.String inUser,
java.lang.String inKeyStoreFileName,
java.lang.String inKeyStorePassword)
construct with host, user protocol. |
Method Summary | |
static byte[] |
decode(byte[] data)
|
static byte[] |
encode(byte[] data)
|
static void |
main(java.lang.String[] argv)
|
void |
sendEDIDocument(java.lang.String message,
java.lang.String toWhom,
boolean sendMDN)
send a document, uses the other sendEDIDocument with debugging turned off |
void |
sendEDIDocument(java.lang.String message,
java.lang.String toWhom,
boolean sendMDN,
boolean debug)
send a document, optional debugging switch. |
void |
sendEncryptedEDIDocument(java.lang.String message,
java.lang.String toWhom,
boolean debug)
send an encrypted document, optional debugging switch. |
void |
sendMDNResponse(java.lang.String toWhom,
boolean lookedAt)
send an MIME Message Delivery Notification back to sender hardcoded mailer id hardcoded subject line, see class variable subject hardcoded response text hardcoded reported as automatic-action in MDN disposition |
void |
sendSignedEDIDocument(java.lang.String message,
java.lang.String toWhom,
boolean debug)
send an signed document, optional debugging switch. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public OutgoingEDIMail(java.lang.String inHost, java.lang.String inUser, java.lang.String inProtocol)
String
- SMTP hostidString
- register useridString
- protocol - if someone provides another java.mail protocol, specify it herepublic OutgoingEDIMail(java.lang.String inHost, java.lang.String inUser)
String
- SMTP hostidString
- register useridpublic OutgoingEDIMail(java.lang.String inHost, java.lang.String inUser, java.lang.String inKeyStoreFileName, java.lang.String inKeyStorePassword) throws java.lang.Exception
String
- SMTP hostidString
- register useridString
- key Store FilenameString
- key Store PasswordMethod Detail |
public static void main(java.lang.String[] argv)
public void sendEDIDocument(java.lang.String message, java.lang.String toWhom, boolean sendMDN)
String
- message, the EDI DocumentString
- toWhom, target audienceboolean
- sendMDN, attach message disposition notification MIME objectpublic void sendEDIDocument(java.lang.String message, java.lang.String toWhom, boolean sendMDN, boolean debug)
String
- message, the EDI DocumentString
- toWhom, target audienceboolean
- sendMDN, attach message disposition notification MIME objectboolean
- debug turn on java.mail debuggerpublic void sendEncryptedEDIDocument(java.lang.String message, java.lang.String toWhom, boolean debug)
String
- message, the EDI DocumentString
- toWhom, target audience, keyStore keyboolean
- debug turn on java.mail debuggerpublic void sendSignedEDIDocument(java.lang.String message, java.lang.String toWhom, boolean debug)
String
- message, the EDI DocumentString
- toWhom, target audience, keyStore keyboolean
- debug turn on java.mail debuggerpublic void sendMDNResponse(java.lang.String toWhom, boolean lookedAt)
String
- toWhom, target audienceboolean
- lookedAt, was the message looked atpublic static byte[] encode(byte[] data)
public static byte[] decode(byte[] data)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |