You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(44) |
Aug
(98) |
Sep
(97) |
Oct
(130) |
Nov
(118) |
Dec
(102) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(139) |
Feb
(74) |
Mar
(128) |
Apr
(104) |
May
(121) |
Jun
(32) |
Jul
(29) |
Aug
(9) |
Sep
(16) |
Oct
|
Nov
(11) |
Dec
(29) |
| 2004 |
Jan
(15) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(9) |
Sep
(2) |
Oct
(9) |
Nov
(3) |
Dec
(2) |
| 2005 |
Jan
(1) |
Feb
(3) |
Mar
(3) |
Apr
|
May
(1) |
Jun
(5) |
Jul
|
Aug
(12) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2006 |
Jan
(3) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(1) |
Oct
(5) |
Nov
(5) |
Dec
|
| 2007 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <kc...@us...> - 2003-06-13 06:52:40
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging
In directory sc8-pr-cvs1:/tmp/cvs-serv9974/packaging
Modified Files:
AttachmentDataSource.java
Log Message:
added a flag to all constructors which pass in a file: to let user choose
whether the content of the file has to be loaded during construction or not.
Default the content will not be loaded, and data will be read from the file
only when the InputStream is consumed.
Index: AttachmentDataSource.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/AttachmentDataSource.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** AttachmentDataSource.java 9 Apr 2003 07:48:17 -0000 1.8
--- AttachmentDataSource.java 13 Jun 2003 06:52:37 -0000 1.9
***************
*** 87,96 ****
* Content type of the attachment.
*/
! private final String contentType;
/**
* Content-Transfer-Encoding of the attachment.
*/
! private final String encoding;
/**
--- 87,96 ----
* Content type of the attachment.
*/
! private String contentType;
/**
* Content-Transfer-Encoding of the attachment.
*/
! private String encoding;
/**
***************
*** 102,110 ****
* Attachment data.
*/
! private final byte[] data;
! private final long offset;
! private final long length;
/**
--- 102,162 ----
* Attachment data.
*/
! private byte[] data;
! private long offset;
! private long length;
!
! /**
! * Constructs an <code>AttachmentDataSource</code> object from an array
! * of binary data.
! *
! * @param data Byte array containing data for the
! * <code>AttachmentDataSource</code>
! * @param contentType Content type of the data.
! */
! public AttachmentDataSource(byte[] data, String contentType) {
! this(data, contentType, null);
! }
!
! /**
! * Constructs an <code>AttachmentDataSource</code> object from an array
! * of binary data, and assign a name to the data source.
! *
! * @param data Byte array containing data for the
! * <code>AttachmentDataSource</code>
! * @param contentType Content type of the data.
! * @param name Name assigned to the
! * <code>AttachmentDataSource</code>
! */
! public AttachmentDataSource(byte[] data, String contentType, String name) {
! this(data, contentType, null, name);
! }
!
! /**
! * Constructs an <code>AttachmentDataSource</code> object from an array
! * of binary data, and assign a name to the data source.
! *
! * @param data Byte array containing data for the
! * <code>AttachmentDataSource</code>
! * @param contentType Content type of the data.
! * @param encoding Content-Transfer-Encoding of the data.
! * @param name Name assigned to the
! * <code>AttachmentDataSource</code>
! */
! public AttachmentDataSource(byte[] data, String contentType,
! String encoding, String name) {
! this.contentType = contentType;
! this.encoding = encoding;
! if (name == null) {
! this.name = AttachmentDataSource.class.getName();
! }
! else {
! this.name = name;
! }
! this.data = data;
! offset = 0;
! length = data.length;
! }
/**
***************
*** 117,121 ****
public AttachmentDataSource(String fileName, String contentType)
throws IOException {
! this(new FileInputStream(fileName), contentType, fileName);
}
--- 169,187 ----
public AttachmentDataSource(String fileName, String contentType)
throws IOException {
! this(fileName, contentType, false);
! }
!
! /**
! * Constructs an <code>AttachmentDataSource</code> object from a file.
! *
! * @param fileName Name of the file to be loaded.
! * @param contentType Content type of the file.
! * @param loadToMem Load all data to memory upon creation
! * @throws IOException
! */
! public AttachmentDataSource(String fileName, String contentType,
! boolean loadToMem)
! throws IOException {
! this(new File(fileName), contentType, loadToMem);
}
***************
*** 131,135 ****
public AttachmentDataSource(File file, String contentType)
throws IOException {
! this(new FileInputStream(file), contentType, file.getName());
}
--- 197,230 ----
public AttachmentDataSource(File file, String contentType)
throws IOException {
! this(file, contentType, false);
! }
!
! /**
! * Constructs an <code>AttachmentDataSource</code> object from a
! * <code>File</code> object.
! *
! * @param file <code>File</code> object containing information
! * on the file to be loaded.
! * @param contentType Content type of the file.
! * @param loadToMem Load all data to memory upon creation
! * @throws IOException
! */
! public AttachmentDataSource(File file, String contentType,
! boolean loadToMem)
! throws IOException {
!
! this.contentType = contentType;
! this.encoding = null;
!
! if (loadToMem) {
! this.name = file.getName();
! loadData(new FileInputStream(file));
! }
! else {
! this.name = file.getCanonicalPath();
! this.data = null;
! this.offset = 0;
! this.length = file.length();
! }
}
***************
*** 189,257 ****
this.name = name;
}
! final byte[] buffer = new byte[4096];
! final ByteArrayOutputStream out = new ByteArrayOutputStream();
! for (int c=in.read(buffer) ; c!=-1 ; c=in.read(buffer))
! out.write(buffer, 0, c);
! data = out.toByteArray();
! offset = 0;
! length = data.length;
! }
!
! /**
! * Constructs an <code>AttachmentDataSource</code> object from an array
! * of binary data.
! *
! * @param data Byte array containing data for the
! * <code>AttachmentDataSource</code>
! * @param contentType Content type of the data.
! */
! public AttachmentDataSource(byte[] data, String contentType) {
! this(data, contentType, null);
}
/**
! * Constructs an <code>AttachmentDataSource</code> object from an array
! * of binary data, and assign a name to the data source.
*
! * @param data Byte array containing data for the
! * <code>AttachmentDataSource</code>
* @param contentType Content type of the data.
- * @param name Name assigned to the
- * <code>AttachmentDataSource</code>
*/
! public AttachmentDataSource(byte[] data, String contentType, String name) {
! this(data, contentType, null, name);
}
/**
! * Constructs an <code>AttachmentDataSource</code> object from an array
! * of binary data, and assign a name to the data source.
*
! * @param data Byte array containing data for the
! * <code>AttachmentDataSource</code>
* @param contentType Content type of the data.
! * @param encoding Content-Transfer-Encoding of the data.
! * @param name Name assigned to the
! * <code>AttachmentDataSource</code>
*/
! public AttachmentDataSource(byte[] data, String contentType,
! String encoding, String name) {
! this.contentType = contentType;
! this.encoding = encoding;
! if (name == null) {
! this.name = AttachmentDataSource.class.getName();
! }
! else {
! this.name = name;
! }
! this.data = data;
! offset = 0;
! length = data.length;
}
/**
* Constructs an <code>AttachmentDataSource</code> object using the data
! * of <code>length</code> in a file starting from <code>offset</code>
! * with the specified Content-Type.
*
* @param fileName Name of the file to be loaded.
--- 284,327 ----
this.name = name;
}
! loadData(in);
}
/**
! * Constructs an <code>AttachmentDataSource</code> object using the data
! * of <code>length</code> in a file starting from <code>offset</code>
! * with the specified Content-Type.
*
! * @param fileName Name of the file to be loaded.
! * @param offset Offset from the start of the file.
! * @param length Length of data to be read.
* @param contentType Content type of the data.
*/
! public AttachmentDataSource(String fileName, long offset, long length,
! String contentType)
! throws IOException {
! this(fileName, offset, length, contentType, false);
}
/**
! * Constructs an <code>AttachmentDataSource</code> object using the data
! * of <code>length</code> in a file starting from <code>offset</code>
! * with the specified Content-Type.
*
! * @param fileName Name of the file to be loaded.
! * @param offset Offset from the start of the file.
! * @param length Length of data to be read.
* @param contentType Content type of the data.
! * @param loadToMem Load all data to memory upon creation
*/
! public AttachmentDataSource(String fileName, long offset, long length,
! String contentType, boolean loadToMem)
! throws IOException {
! this(fileName, offset, length, contentType, null, loadToMem);
}
/**
* Constructs an <code>AttachmentDataSource</code> object using the data
! * of <code>length</code> in a file starting from <code>offset</code>.
! * with the specified Content-Type and Content-Transfer-Encoding.
*
* @param fileName Name of the file to be loaded.
***************
*** 259,266 ****
* @param length Length of data to be read.
* @param contentType Content type of the data.
*/
public AttachmentDataSource(String fileName, long offset, long length,
! String contentType) {
! this(fileName, offset, length, contentType, null);
}
--- 329,338 ----
* @param length Length of data to be read.
* @param contentType Content type of the data.
+ * @param encoding Content-Transfer-Encoding of the data.
*/
public AttachmentDataSource(String fileName, long offset, long length,
! String contentType, String encoding)
! throws IOException {
! this(fileName, offset, length, contentType, encoding, false);
}
***************
*** 275,287 ****
* @param contentType Content type of the data.
* @param encoding Content-Transfer-Encoding of the data.
*/
public AttachmentDataSource(String fileName, long offset, long length,
! String contentType, String encoding) {
! this.contentType = contentType;
! this.encoding = encoding;
! this.name = fileName;
! this.data = null;
! this.offset = offset;
! this.length = length;
}
--- 347,387 ----
* @param contentType Content type of the data.
* @param encoding Content-Transfer-Encoding of the data.
+ * @param loadToMem Load all data to memory upon creation
*/
public AttachmentDataSource(String fileName, long offset, long length,
! String contentType, String encoding,
! boolean loadToMem)
! throws IOException {
! if (loadToMem) {
! final File file = new File(name);
! if (file.length() < (offset + length)) {
! throw new IOException("Premature end-of-file: file name=" +
! name + " | file length=" + file.length() + " | offset=" +
! offset + " | length to be read=" + length);
! }
! final FileInputStream fis = new FileInputStream(name);
! final InputStream is = new PartialInputStream(fis, offset, length);
! loadData(is);
! this.contentType = contentType;
! this.encoding = encoding;
! }
! else {
! this.contentType = contentType;
! this.encoding = encoding;
! this.name = fileName;
! this.data = null;
! this.offset = offset;
! this.length = length;
! }
! }
!
! private void loadData(InputStream is) throws IOException {
! final byte[] buffer = new byte[4096];
! final ByteArrayOutputStream out = new ByteArrayOutputStream();
! for (int c=is.read(buffer) ; c!=-1 ; c=is.read(buffer))
! out.write(buffer, 0, c);
! this.data = out.toByteArray();
! this.offset = 0;
! this.length = data.length;
}
***************
*** 386,391 ****
}
public long getLength() {
! return length;
}
}
--- 486,501 ----
}
+ /**
+ * Gets the length of data in this data source
+ *
+ * @return length of data
+ */
public long getLength() {
! if (data != null) {
! return data.length;
! }
! else {
! return length;
! }
}
}
|
|
From: <kc...@us...> - 2003-06-13 06:49:28
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging
In directory sc8-pr-cvs1:/tmp/cvs-serv9524/packaging
Modified Files:
PayloadContainer.java
Log Message:
added comment
Index: PayloadContainer.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/PayloadContainer.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** PayloadContainer.java 13 Jun 2003 06:44:37 -0000 1.9
--- PayloadContainer.java 13 Jun 2003 06:49:25 -0000 1.10
***************
*** 194,198 ****
/**
! * Get the content length of this payload
* @return content length of this payload
*/
--- 194,202 ----
/**
! * Get the content length of this payload. Note that the content length
! * returned will be -1 if this container is not created from
! * AttachmentDataSource. Also, the length returned does not take
! * Content-Transfer-Encoding into account, if any.
! *
* @return content length of this payload
*/
|
|
From: <kc...@us...> - 2003-06-13 06:44:41
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging
In directory sc8-pr-cvs1:/tmp/cvs-serv7418/packaging
Modified Files:
PayloadContainer.java
Log Message:
1. make the constructor public, so that it is callable from MessageServer
2. add a method to get the content length of the payload size if the payload
container is created from an AttachmentDataSource. Please note that the
content length is raw size, which does not take the content transfer
encoding into account, if any.
Index: PayloadContainer.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/PayloadContainer.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** PayloadContainer.java 10 Jun 2003 02:22:49 -0000 1.8
--- PayloadContainer.java 13 Jun 2003 06:44:37 -0000 1.9
***************
*** 72,75 ****
--- 72,76 ----
import javax.xml.soap.SOAPException;
import javax.activation.DataHandler;
+ import javax.activation.DataSource;
/**
***************
*** 128,132 ****
* <code>AttachmentPart</code>.
*/
! PayloadContainer(AttachmentPart attachmentPart, String contentId,
Reference reference) {
this.attachmentPart = attachmentPart;
--- 129,133 ----
* <code>AttachmentPart</code>.
*/
! public PayloadContainer(AttachmentPart attachmentPart, String contentId,
Reference reference) {
this.attachmentPart = attachmentPart;
***************
*** 190,193 ****
--- 191,214 ----
public Reference getReference() {
return reference;
+ }
+
+ /**
+ * Get the content length of this payload
+ * @return content length of this payload
+ */
+ public long getContentLength() {
+ try {
+ DataSource source = attachmentPart.getDataHandler().getDataSource();
+ if (source instanceof AttachmentDataSource) {
+ AttachmentDataSource ads = (AttachmentDataSource) source;
+ return ads.getLength();
+ }
+ else {
+ return -1;
+ }
+ }
+ catch (SOAPException e) {
+ return -1;
+ }
}
}
|
|
From: <kc...@us...> - 2003-06-13 06:39:50
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/transport
In directory sc8-pr-cvs1:/tmp/cvs-serv6151/transport
Modified Files:
Http.java
Log Message:
1. get MIME header from ebxml message instead of from soap message
2. fix problem of throwing error if authorization needed
3. change variable name of mime headers of the soap message to avoid
clashing with the name of the mime headers of ebxml message
Index: Http.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/transport/Http.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Http.java 12 Jun 2003 02:37:22 -0000 1.1
--- Http.java 13 Jun 2003 06:39:46 -0000 1.2
***************
*** 73,77 ****
import hk.hku.cecid.phoenix.message.handler.ErrorMessages;
import hk.hku.cecid.phoenix.message.handler.InitializationException;
! import hk.hku.cecid.phoenix.message.handler.Utility;
import hk.hku.cecid.phoenix.message.packaging.EbxmlMessage;
import java.io.ByteArrayInputStream;
--- 73,77 ----
import hk.hku.cecid.phoenix.message.handler.ErrorMessages;
import hk.hku.cecid.phoenix.message.handler.InitializationException;
! // import hk.hku.cecid.phoenix.message.handler.Utility;
import hk.hku.cecid.phoenix.message.packaging.EbxmlMessage;
import java.io.ByteArrayInputStream;
***************
*** 85,93 ****
import java.security.Security;
import java.util.Iterator;
! // import java.util.Map;
// import java.util.Map.Entry;
import java.util.StringTokenizer;
import javax.xml.soap.MessageFactory;
! import javax.xml.soap.MimeHeader;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPException;
--- 85,93 ----
import java.security.Security;
import java.util.Iterator;
! import java.util.Map;
// import java.util.Map.Entry;
import java.util.StringTokenizer;
import javax.xml.soap.MessageFactory;
! // import javax.xml.soap.MimeHeader;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPException;
***************
*** 219,225 ****
boolean hasAuthorization = false;
! // Map headers = message.getMimeHeaders();
! MimeHeaders headers = message.getSOAPMessage().getMimeHeaders();
! for (Iterator i=headers.getAllHeaders() ; i.hasNext() ; ) {
MimeHeader header = (MimeHeader) i.next();
String[] values = headers.getHeader(header.getName());
--- 219,227 ----
boolean hasAuthorization = false;
! //MimeHeaders headers = message.getSOAPMessage().getMimeHeaders();
! Map headers = message.getMimeHeaders(encoding);
! //for (Iterator i=headers.getAllHeaders() ; i.hasNext() ; ) {
! for (Iterator i=headers.entrySet().iterator() ; i.hasNext() ; ) {
! /*
MimeHeader header = (MimeHeader) i.next();
String[] values = headers.getHeader(header.getName());
***************
*** 230,248 ****
}
}
! /*
Map.Entry entry = (Map.Entry) i.next();
connection.setRequestProperty((String) entry.getKey(),
(String) entry.getValue());
! */
! connection.setRequestProperty(header.getName(), value);
! hasAuthorization = header.getName().equals(AUTHORIZATION);
}
! if (!hasAuthorization) {
throw new Error("HTTP Authorization not yet implemented!");
}
OutputStream os = connection.getOutputStream();
! message.writeTo(os);
os.flush();
os.close();
--- 232,250 ----
}
}
! connection.setRequestProperty(header.getName(), value);
! hasAuthorization = header.getName().equals(AUTHORIZATION);
! */
Map.Entry entry = (Map.Entry) i.next();
connection.setRequestProperty((String) entry.getKey(),
(String) entry.getValue());
! hasAuthorization = entry.getKey().equals(AUTHORIZATION);
}
! if (hasAuthorization) {
throw new Error("HTTP Authorization not yet implemented!");
}
OutputStream os = connection.getOutputStream();
! message.writeTo(os, encoding);
os.flush();
os.close();
***************
*** 251,255 ****
int responseCode = connection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
! headers = new MimeHeaders();
String key = connection.getHeaderFieldKey(1);
String value = connection.getHeaderFieldKey(1);
--- 253,257 ----
int responseCode = connection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
! MimeHeaders mimeHeaders = new MimeHeaders();
String key = connection.getHeaderFieldKey(1);
String value = connection.getHeaderFieldKey(1);
***************
*** 257,261 ****
StringTokenizer values = new StringTokenizer(value, ",");
while (values.hasMoreTokens()) {
! headers.addHeader(key, values.nextToken().trim());
}
key = connection.getHeaderFieldKey(i);
--- 259,263 ----
StringTokenizer values = new StringTokenizer(value, ",");
while (values.hasMoreTokens()) {
! mimeHeaders.addHeader(key, values.nextToken().trim());
}
key = connection.getHeaderFieldKey(i);
***************
*** 283,287 ****
if (bytes.length > 0) {
responseMessage = MessageFactory.newInstance().
! createMessage(headers, new ByteArrayInputStream(bytes));
}
}
--- 285,290 ----
if (bytes.length > 0) {
responseMessage = MessageFactory.newInstance().
! createMessage(mimeHeaders,
! new ByteArrayInputStream(bytes));
}
}
|
|
From: <kc...@us...> - 2003-06-13 06:33:43
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv4664/handler
Modified Files:
Constants.java
Log Message:
added a new constants representing a CRLF
Index: Constants.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/Constants.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** Constants.java 27 May 2003 06:53:31 -0000 1.28
--- Constants.java 13 Jun 2003 06:33:39 -0000 1.29
***************
*** 650,653 ****
--- 650,658 ----
public static final String START = "start";
+ /**
+ * CRLF
+ */
+ public static final String CRLF = "\r\n";
+
/*
* XML tags for Exports
|
|
From: <cy...@us...> - 2003-06-12 02:37:25
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/transport
In directory sc8-pr-cvs1:/tmp/cvs-serv13359
Added Files:
Http.java
Log Message:
First commit of Http.java.
- It does the same thing as HttpServlet.java (but HttpServlet is actually
not a servlet any more, so rename).
- It does not call JAXM SOAPConnection.call() as it cannot handle the
case when the HTTP response code is 200 with no content.
--- NEW FILE: Http.java ---
/*
* Copyright(c) 2002 Center for E-Commerce Infrastructure Development, The
* University of Hong Kong (HKU). All Rights Reserved.
*
* This software is licensed under the Academic Free License Version 1.0
*
* Academic Free License
* Version 1.0
*
* This Academic Free License applies to any software and associated
* documentation (the "Software") whose owner (the "Licensor") has placed the
* statement "Licensed under the Academic Free License Version 1.0" immediately
* after the copyright notice that applies to the Software.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of the Software (1) to use, copy, modify, merge, publish, perform,
* distribute, sublicense, and/or sell copies of the Software, and to permit
* persons to whom the Software is furnished to do so, and (2) under patent
* claims owned or controlled by the Licensor that are embodied in the Software
* as furnished by the Licensor, to make, use, sell and offer for sale the
* Software and derivative works thereof, subject to the following conditions:
*
* - Redistributions of the Software in source code form must retain all
* copyright notices in the Software as furnished by the Licensor, this list
* of conditions, and the following disclaimers.
* - Redistributions of the Software in executable form must reproduce all
* copyright notices in the Software as furnished by the Licensor, this list
* of conditions, and the following disclaimers in the documentation and/or
* other materials provided with the distribution.
* - Neither the names of Licensor, nor the names of any contributors to the
* Software, nor any of their trademarks or service marks, may be used to
* endorse or promote products derived from this Software without express
* prior written permission of the Licensor.
*
* DISCLAIMERS: LICENSOR WARRANTS THAT THE COPYRIGHT IN AND TO THE SOFTWARE IS
* OWNED BY THE LICENSOR OR THAT THE SOFTWARE IS DISTRIBUTED BY LICENSOR UNDER
* A VALID CURRENT LICENSE. EXCEPT AS EXPRESSLY STATED IN THE IMMEDIATELY
* PRECEDING SENTENCE, THE SOFTWARE IS PROVIDED BY THE LICENSOR, CONTRIBUTORS
* AND COPYRIGHT OWNERS "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* LICENSOR, CONTRIBUTORS OR COPYRIGHT OWNERS BE LIABLE FOR ANY CLAIM, DAMAGES
* OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE.
*
* This license is Copyright (C) 2002 Lawrence E. Rosen. All rights reserved.
* Permission is hereby granted to copy and distribute this license without
* modification. This license may not be modified without the express written
* permission of its copyright owner.
*/
/* =====
*
* $Header: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/transport/Http.java,v 1.1 2003/06/12 02:37:22 cyng Exp $
*
* Code authored by:
*
* cyng [2003-06-09]
*
* Code reviewed by:
*
* username [YYYY-MM-DD]
*
* Remarks:
*
* =====
*/
package hk.hku.cecid.phoenix.message.transport;
import hk.hku.cecid.phoenix.common.util.Property;
import hk.hku.cecid.phoenix.message.handler.Constants;
import hk.hku.cecid.phoenix.message.handler.ErrorMessages;
import hk.hku.cecid.phoenix.message.handler.InitializationException;
import hk.hku.cecid.phoenix.message.handler.Utility;
import hk.hku.cecid.phoenix.message.packaging.EbxmlMessage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.security.Provider;
import java.security.Security;
import java.util.Iterator;
// import java.util.Map;
// import java.util.Map.Entry;
import java.util.StringTokenizer;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.MimeHeader;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;
import org.apache.log4j.Logger;
/**
* Transport layer to send and receive <code>SOAPMessage</code> via HTTP
* synchronously.
*
* @author cyng
* @version $Revision: 1.1 $
*/
public final class Http {
private static final String HTTP_METHOD = "POST";
private static final String AUTHORIZATION = "Authorization";
private static final String PROTOCOL_HANDLER_PKGS =
"java.protocol.handler.pkgs";
private static final String SSL_WWW_PROTOCOL =
"com.sun.net.ssl.internal.www.protocol";
private static String SSL_SSL_PROVIDER =
"com.sun.net.ssl.internal.ssl.Provider";
static Logger logger = Logger.getLogger(Http.class);
private static String encoding =
Constants.DEFAULT_CONTENT_TRANSFER_ENCODING;
public static void configure(Property prop) throws InitializationException {
String s = prop.get(Constants.PROPERTY_CONTENT_TRANSFER_ENCODING);
if (s != null && !s.equals("")) {
encoding = s;
}
}
/**
* Send an <code>EbxmlMessage</code> synchronously to the given URL and
* block the thread until a response is received.
*
* @param message <code>EbxmlMessage</code> to be sent.
* @param toUrl Destination URL for the message to be sent to.
*
* @return the <code>SOAPMessage</code> which is the response of the
* message that was sent.
* @throws TransportException
*/
public static SOAPMessage send(EbxmlMessage message, String toUrl)
throws TransportException {
logger.debug("=> Http.send");
logger.info("Sending message to " + toUrl);
/*
boolean hasAttachments = message.getPayloadContainers().hasNext();
try {
// set content-transfer-encoding
if (hasAttachments) {
Utility.addContentTransferEncoding(message,
Constants.DEFAULT_CONTENT_TRANSFER_ENCODING, encoding);
message.saveChanges();
}
}
catch (SOAPException e) {
logger.error(ErrorMessages.getMessage(
ErrorMessages.ERR_SOAP_CANNOT_SAVE_OBJECT, e));
throw new TransportException(ErrorMessages.getMessage(
ErrorMessages.ERR_SOAP_CANNOT_SAVE_OBJECT));
}
catch (Exception e) {
String err = ErrorMessages.getMessage(
ErrorMessages.ERR_HERMES_UNKNOWN_ERROR, e);
logger.error(err);
throw new TransportException(err);
}
// modify content type to a single line
String type = message.getMimeHeaders().getHeader
(Constants.CONTENT_TYPE)[0];
int index = type.indexOf("\n");
if (index != -1) {
type = type.substring(0, index).trim() + " " +
type.substring(index+1, type.length()).trim();
}
index = type.indexOf("\r");
if (index != -1) {
type = type.substring(0, index).trim() + " " +
type.substring(index+1, type.length()).trim();
}
if (type.toLowerCase().indexOf(Constants.CHARACTER_SET) == -1) {
type += "; " + Constants.CHARACTER_SET + "=\"" +
Constants.CHARACTER_ENCODING + "\"";
}
if (type.toLowerCase().indexOf(Constants.MULTIPART_RELATED) != -1
&& type.toLowerCase().indexOf(Constants.START) == -1) {
type += "; " + Constants.START + "=\"<" +
EbxmlMessage.SOAP_PART_CONTENT_ID + ">\"";
}
message.getMimeHeaders().setHeader(Constants.CONTENT_TYPE, type);
*/
SOAPMessage responseMessage = null;
try {
URL url = new URL(toUrl);
if (url.getProtocol().equalsIgnoreCase
(Constants.TRANSPORT_TYPE_HTTPS)) {
String pkgs = System.getProperty(PROTOCOL_HANDLER_PKGS);
if (pkgs == null || pkgs.indexOf(SSL_WWW_PROTOCOL) < 0 ) {
pkgs = (pkgs == null ? SSL_WWW_PROTOCOL :
SSL_WWW_PROTOCOL + "|" + pkgs);
System.setProperty(PROTOCOL_HANDLER_PKGS, pkgs);
Security.addProvider((Provider) Class.forName
(SSL_SSL_PROVIDER).newInstance());
}
}
HttpURLConnection connection = (HttpURLConnection)
url.openConnection();
connection.setRequestMethod(HTTP_METHOD);
connection.setDoInput(true);
connection.setDoOutput(true);
connection.setUseCaches(false);
connection.setDefaultUseCaches(false);
HttpURLConnection.setFollowRedirects(true);
boolean hasAuthorization = false;
// Map headers = message.getMimeHeaders();
MimeHeaders headers = message.getSOAPMessage().getMimeHeaders();
for (Iterator i=headers.getAllHeaders() ; i.hasNext() ; ) {
MimeHeader header = (MimeHeader) i.next();
String[] values = headers.getHeader(header.getName());
String value = header.getValue();
if (values.length > 1) {
for (int j=1 ; j<values.length ; j++) {
value += "," + values[j];
}
}
/*
Map.Entry entry = (Map.Entry) i.next();
connection.setRequestProperty((String) entry.getKey(),
(String) entry.getValue());
*/
connection.setRequestProperty(header.getName(), value);
hasAuthorization = header.getName().equals(AUTHORIZATION);
}
if (!hasAuthorization) {
throw new Error("HTTP Authorization not yet implemented!");
}
OutputStream os = connection.getOutputStream();
message.writeTo(os);
os.flush();
os.close();
connection.connect();
int responseCode = connection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
headers = new MimeHeaders();
String key = connection.getHeaderFieldKey(1);
String value = connection.getHeaderFieldKey(1);
for (int i=2 ; key != null ; i++) {
StringTokenizer values = new StringTokenizer(value, ",");
while (values.hasMoreTokens()) {
headers.addHeader(key, values.nextToken().trim());
}
key = connection.getHeaderFieldKey(i);
value = connection.getHeaderFieldKey(i);
}
InputStream is = connection.getInputStream();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] buffer = new byte[65536];
for (int c=is.read(buffer) ; c != -1 ; c=is.read(buffer)) {
baos.write(buffer, 0, c);
}
byte[] bytes = baos.toByteArray();
baos = null;
is.close();
int contentLength = connection.getContentLength();
if (contentLength != -1 && contentLength != bytes.length) {
String err = ErrorMessages.getMessage(ErrorMessages.
ERR_HERMES_HTTP_POST_FAILED, Constants.CONTENT_LENGTH +
" = " + contentLength + " but only " + bytes.length +
" bytes are successfully read from response stream");
logger.error(err);
throw new TransportException(err);
}
if (bytes.length > 0) {
responseMessage = MessageFactory.newInstance().
createMessage(headers, new ByteArrayInputStream(bytes));
}
}
else if ((responseCode/100) != (HttpURLConnection.HTTP_OK/100)) {
String err = ErrorMessages.getMessage(ErrorMessages.
ERR_HERMES_HTTP_POST_FAILED, "Bad response: code = " +
responseCode + " and message = " + connection.
getResponseMessage());
logger.error(err);
throw new TransportException(err);
}
connection.disconnect();
}
catch (TransportException e) {
throw e;
}
catch (Exception e) {
String err =
((e instanceof SOAPException || e instanceof IOException) ?
ErrorMessages.getMessage
(ErrorMessages.ERR_SOAP_CANNOT_SEND_MESSAGE, e) :
ErrorMessages.getMessage
(ErrorMessages.ERR_HERMES_UNKNOWN_ERROR, e));
logger.error(err);
throw new TransportException(err);
}
/*
try {
// unset content-transfer-encoding
if (hasAttachments) {
Utility.removeContentTransferEncoding(message);
message.saveChanges();
}
}
catch (SOAPException e) {
logger.error(ErrorMessages.getMessage(
ErrorMessages.ERR_SOAP_CANNOT_SAVE_OBJECT, e));
throw new TransportException(ErrorMessages.getMessage(
ErrorMessages.ERR_SOAP_CANNOT_SAVE_OBJECT));
}
catch (Exception e) {
String err = ErrorMessages.getMessage(
ErrorMessages.ERR_HERMES_UNKNOWN_ERROR, e);
logger.error(err);
throw new TransportException(err);
}
*/
logger.debug("<= Http.send");
return responseMessage;
}
}
|
|
From: <cy...@us...> - 2003-06-10 02:38:46
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging
In directory sc8-pr-cvs1:/tmp/cvs-serv2624
Modified Files:
BodyElement.java ExtensionElementImpl.java
HeaderContainer.java HeaderElement.java Manifest.java
PayloadContainer.java Reference.java
Log Message:
Significant commit: change the implementation of how SOAPHeaderElement and
SOAPBodyElement are added to SOAPMessage. Now, the packaging codes should
work for both JAXM and Axis (except digital signature).
Index: BodyElement.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/BodyElement.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** BodyElement.java 9 Apr 2003 07:48:18 -0000 1.5
--- BodyElement.java 10 Jun 2003 02:22:48 -0000 1.6
***************
*** 90,94 ****
BodyElement(SOAPEnvelope soapEnvelope, String localName)
throws SOAPException {
! super(soapEnvelope, localName);
addAttribute(ATTRIBUTE_VERSION, VERSION);
}
--- 90,94 ----
BodyElement(SOAPEnvelope soapEnvelope, String localName)
throws SOAPException {
! super(soapEnvelope, localName, false);
addAttribute(ATTRIBUTE_VERSION, VERSION);
}
Index: ExtensionElementImpl.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/ExtensionElementImpl.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ExtensionElementImpl.java 9 Apr 2003 07:48:21 -0000 1.7
--- ExtensionElementImpl.java 10 Jun 2003 02:22:48 -0000 1.8
***************
*** 120,126 ****
Specification
*/
! ExtensionElementImpl(SOAPEnvelope soapEnvelope, String localName)
throws SOAPException {
! this(soapEnvelope, localName, NAMESPACE_PREFIX_EB, NAMESPACE_URI_EB);
}
--- 120,128 ----
Specification
*/
! ExtensionElementImpl(SOAPEnvelope soapEnvelope, String localName,
! boolean isHeaderElement)
throws SOAPException {
! this(soapEnvelope, localName, NAMESPACE_PREFIX_EB, NAMESPACE_URI_EB,
! isHeaderElement);
}
***************
*** 132,140 ****
*/
ExtensionElementImpl(SOAPEnvelope soapEnvelope, String localName,
! String prefix, String uri)
throws SOAPException {
soapElement = SOAPFactory.newInstance().
createElement(localName, prefix, uri);
this.soapEnvelope = soapEnvelope;
namespacePrefix = prefix;
namespaceUri = uri;
--- 134,156 ----
*/
ExtensionElementImpl(SOAPEnvelope soapEnvelope, String localName,
! String prefix, String uri, boolean isHeaderElement)
throws SOAPException {
+ /*
soapElement = SOAPFactory.newInstance().
createElement(localName, prefix, uri);
+ */
this.soapEnvelope = soapEnvelope;
+ Name name = soapEnvelope.createName(localName, prefix, uri);
+ if (isHeaderElement) {
+ soapElement = soapEnvelope.getHeader().addHeaderElement(name);
+ if (uri.equals(NAMESPACE_URI_EB)) {
+ ((SOAPHeaderElement) soapElement).
+ setMustUnderstand(HeaderElement.MUST_UNDERSTAND);
+ ((SOAPHeaderElement) soapElement).setActor(null);
+ }
+ }
+ else {
+ soapElement = soapEnvelope.getBody().addBodyElement(name);
+ }
namespacePrefix = prefix;
namespaceUri = uri;
***************
*** 275,278 ****
--- 291,302 ----
name.getPrefix().equals(soapElement.getElementName().getPrefix())
== false) {
+ for (Iterator i=soapEnvelope.getNamespacePrefixes() ;
+ i.hasNext() ; ) {
+ String prefix = (String) i.next();
+ String uri = soapEnvelope.getNamespaceURI(prefix);
+ if (uri.equals(name.getURI())) {
+ soapEnvelope.removeNamespaceDeclaration(prefix);
+ }
+ }
soapEnvelope.addNamespaceDeclaration(name.getPrefix(),
name.getURI());
***************
*** 347,351 ****
final Name childName = child.getElementName();
if (childName.getLocalName().equals(name.getLocalName()) &&
- childName.getPrefix().equals(name.getPrefix()) &&
childName.getURI().equals(name.getURI())) {
childElements.add(child);
--- 371,374 ----
Index: HeaderContainer.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/HeaderContainer.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** HeaderContainer.java 15 Apr 2003 02:05:43 -0000 1.9
--- HeaderContainer.java 10 Jun 2003 02:22:48 -0000 1.10
***************
*** 126,129 ****
--- 126,140 ----
messageHeader = null;
+ for (Iterator i=soapEnvelope.getNamespacePrefixes() ;
+ i.hasNext() ; ) {
+ String prefix = (String) i.next();
+ String uri = soapEnvelope.getNamespaceURI(prefix);
+ if (uri.equals(ExtensionElement.NAMESPACE_URI_SOAP_ENVELOPE)) {
+ soapEnvelope.removeNamespaceDeclaration(prefix);
+ }
+ }
+ soapEnvelope.addNamespaceDeclaration
+ (ExtensionElement.NAMESPACE_PREFIX_SOAP_ENVELOPE,
+ ExtensionElement.NAMESPACE_URI_SOAP_ENVELOPE);
// Add soap envelope schema location
soapEnvelope.addNamespaceDeclaration(
***************
*** 296,306 ****
--- 307,320 ----
throws SOAPException {
if (extensionElement instanceof HeaderElement) {
+ /*
final SOAPHeader soapHeader;
soapHeader = soapEnvelope.getHeader();
soapHeader.addChildElement(extensionElement.getSOAPElement());
extensionElement.synchronizeWithParent(soapHeader, 0);
+ */
if (extensionElement instanceof MessageHeader) {
if (messageHeader == null) {
messageHeader = (MessageHeader) extensionElement;
+ /*
final SOAPElement parent =
messageHeader.getSOAPElement();
***************
*** 311,314 ****
--- 325,329 ----
synchronizeWithParent(parent, 0);
}
+ */
}
else {
***************
*** 325,328 ****
--- 340,344 ----
Signature signature = (Signature) extensionElement;
signatures.add(signature);
+ /*
SOAPElement parent = signature.getSOAPElement();
int count = 0;
***************
*** 332,335 ****
--- 348,352 ----
count++;
}
+ */
}
else if (extensionElement instanceof AckRequested) {
***************
*** 412,421 ****
--- 429,441 ----
}
else if (extensionElement instanceof BodyElement) {
+ /*
final SOAPBody soapBody = soapEnvelope.getBody();
soapBody.addChildElement(extensionElement.getSOAPElement());
extensionElement.synchronizeWithParent(soapBody, 0);
+ */
if (extensionElement instanceof Manifest) {
if (manifest == null) {
manifest = (Manifest) extensionElement;
+ /*
final SOAPElement parent = manifest.getSOAPElement();
int count = 0;
***************
*** 425,428 ****
--- 445,449 ----
count++;
}
+ */
}
else {
Index: HeaderElement.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/HeaderElement.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HeaderElement.java 9 Apr 2003 07:48:24 -0000 1.4
--- HeaderElement.java 10 Jun 2003 02:22:48 -0000 1.5
***************
*** 93,97 ****
"http://schemas.xmlsoap.org/soap/actor/next";
! private static final String MUST_UNDERSTAND = "1";
private String actor = null;
--- 93,97 ----
"http://schemas.xmlsoap.org/soap/actor/next";
! static final boolean MUST_UNDERSTAND = true;
private String actor = null;
***************
*** 106,118 ****
HeaderElement(SOAPEnvelope soapEnvelope, String localName)
throws SOAPException {
! super(soapEnvelope, localName);
addAttribute(ATTRIBUTE_VERSION, VERSION);
addAttribute(ATTRIBUTE_MUST_UNDERSTAND, NAMESPACE_PREFIX_SOAP_ENVELOPE,
NAMESPACE_URI_SOAP_ENVELOPE, MUST_UNDERSTAND);
}
HeaderElement(SOAPEnvelope soapEnvelope, String localName, String prefix,
String uri) throws SOAPException {
! super(soapEnvelope, localName, prefix, uri);
}
--- 106,120 ----
HeaderElement(SOAPEnvelope soapEnvelope, String localName)
throws SOAPException {
! super(soapEnvelope, localName, true);
addAttribute(ATTRIBUTE_VERSION, VERSION);
+ /*
addAttribute(ATTRIBUTE_MUST_UNDERSTAND, NAMESPACE_PREFIX_SOAP_ENVELOPE,
NAMESPACE_URI_SOAP_ENVELOPE, MUST_UNDERSTAND);
+ */
}
HeaderElement(SOAPEnvelope soapEnvelope, String localName, String prefix,
String uri) throws SOAPException {
! super(soapEnvelope, localName, prefix, uri, true);
}
Index: Manifest.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/Manifest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Manifest.java 9 Apr 2003 07:48:24 -0000 1.6
--- Manifest.java 10 Jun 2003 02:22:49 -0000 1.7
***************
*** 109,116 ****
public Reference addReference(String id, String href)
throws SOAPException {
! final Element child = addChildElement
! (new Reference(soapEnvelope, id, href));
! final Reference reference = new Reference
! (soapEnvelope, child.getSOAPElement());
references.add(reference);
return reference;
--- 109,116 ----
public Reference addReference(String id, String href)
throws SOAPException {
! final Reference reference = new Reference(soapEnvelope,
! addChildElement(Reference.REFERENCE).getSOAPElement());
! reference.setId(id);
! reference.setHref(href);
references.add(reference);
return reference;
Index: PayloadContainer.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/PayloadContainer.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** PayloadContainer.java 9 Apr 2003 07:48:27 -0000 1.7
--- PayloadContainer.java 10 Jun 2003 02:22:49 -0000 1.8
***************
*** 146,149 ****
--- 146,152 ----
* Return the <code>AttachmentPart</code> that this
* <code>PayloadContainer</code> encapsulates.
+ *
+ * @deprecated use other methods such as getDataHandler(), etc. to
+ * get information of this <code>PayloadContainer</code>.
*/
public AttachmentPart getAttachmentPart() {
Index: Reference.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/Reference.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Reference.java 9 Apr 2003 07:48:27 -0000 1.8
--- Reference.java 10 Jun 2003 02:22:49 -0000 1.9
***************
*** 180,189 ****
* id attribute of <code>Reference</code> element.
*/
! private final String id;
/**
* href attribute of <code>Reference</code> element.
*/
! private final String href;
/**
--- 180,189 ----
* id attribute of <code>Reference</code> element.
*/
! private String id;
/**
* href attribute of <code>Reference</code> element.
*/
! private String href;
/**
***************
*** 257,263 ****
* @throws SOAPException
*/
Reference(SOAPEnvelope soapEnvelope, String id, String href)
throws SOAPException {
! super(soapEnvelope, REFERENCE);
this.id = id;
this.href = href;
--- 257,264 ----
* @throws SOAPException
*/
+ /*
Reference(SOAPEnvelope soapEnvelope, String id, String href)
throws SOAPException {
! super(soapEnvelope, REFERENCE, false);
this.id = id;
this.href = href;
***************
*** 271,274 ****
--- 272,276 ----
descriptions = new ArrayList();
}
+ */
/**
***************
*** 336,339 ****
--- 338,354 ----
}
+ void setId(String id) throws SOAPException {
+ if (this.id != null) {
+ throw new SOAPValidationException(SOAPValidationException.
+ SOAP_FAULT_CLIENT, "<" + NAMESPACE_PREFIX_XLINK + ":" +
+ ATTRIBUTE_ID + "> has already been set in <" +
+ NAMESPACE_PREFIX_EB + ":" + REFERENCE + ">!");
+ }
+ this.id = id;
+ addAttribute(ATTRIBUTE_ID, id);
+ addAttribute(ATTRIBUTE_TYPE, NAMESPACE_PREFIX_XLINK,
+ NAMESPACE_URI_XLINK, XLINK_TYPE);
+ }
+
/**
* Get href attribute of the <code>Reference</code> element.
***************
*** 345,348 ****
--- 360,381 ----
}
+ void setHref(String href) throws SOAPException {
+ if (this.href != null) {
+ throw new SOAPValidationException(SOAPValidationException.
+ SOAP_FAULT_CLIENT, "<" + NAMESPACE_PREFIX_XLINK + ":" +
+ ATTRIBUTE_HREF + "> has already been set in <" +
+ NAMESPACE_PREFIX_EB + ":" + REFERENCE + ">!");
+ }
+ if (this.id == null) {
+ throw new SOAPValidationException(SOAPValidationException.
+ SOAP_FAULT_CLIENT, "<" + NAMESPACE_PREFIX_XLINK + ":" +
+ ATTRIBUTE_ID + "> has not been set in <" +
+ NAMESPACE_PREFIX_EB + ":" + REFERENCE + ">!");
+ }
+ this.href = href;
+ addAttribute(ATTRIBUTE_HREF, NAMESPACE_PREFIX_XLINK,
+ NAMESPACE_URI_XLINK, href);
+ }
+
public String getRole() {
return role;
***************
*** 353,357 ****
throw new SOAPValidationException(SOAPValidationException.
SOAP_FAULT_CLIENT, "<" + NAMESPACE_PREFIX_XLINK + ":" +
! ATTRIBUTE_ROLE + "> has already been " + "set in <" +
NAMESPACE_PREFIX_EB + ":" + REFERENCE + ">!");
}
--- 386,390 ----
throw new SOAPValidationException(SOAPValidationException.
SOAP_FAULT_CLIENT, "<" + NAMESPACE_PREFIX_XLINK + ":" +
! ATTRIBUTE_ROLE + "> has already been set in <" +
NAMESPACE_PREFIX_EB + ":" + REFERENCE + ">!");
}
|
|
From: <kc...@us...> - 2003-06-09 07:57:04
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler In directory sc8-pr-cvs1:/tmp/cvs-serv32346/src/hk/hku/cecid/phoenix/message/handler Modified Files: Request.java Log Message: remove unused import Index: Request.java =================================================================== RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/Request.java,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** Request.java 27 May 2003 06:55:01 -0000 1.72 --- Request.java 9 Jun 2003 07:57:00 -0000 1.73 *************** *** 72,76 **** import hk.hku.cecid.phoenix.message.packaging.AttachmentDataSource; import hk.hku.cecid.phoenix.message.packaging.EbxmlMessage; - import hk.hku.cecid.phoenix.message.packaging.MessageHeader; import hk.hku.cecid.phoenix.message.packaging.MessageOrder; import hk.hku.cecid.phoenix.message.packaging.PayloadContainer; --- 72,75 ---- |
|
From: <kc...@us...> - 2003-06-06 07:17:34
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv7160/src/hk/hku/cecid/phoenix/message/handler
Modified Files:
Utility.java
Log Message:
bug fix: external properties file mechanism fail when call configureLogger twice
Index: Utility.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/Utility.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** Utility.java 27 May 2003 03:03:08 -0000 1.21
--- Utility.java 6 Jun 2003 07:17:30 -0000 1.22
***************
*** 482,487 ****
Constants.PROPERTY_EXTERNAL_LOGGER_CONFIG);
if (externalProperties != null &&
! (new File(externalProperties)).exists() &&
! !loggingConfigured) {
System.err.println("Info: loading LOG4J properties file at "
+ externalProperties);
--- 482,491 ----
Constants.PROPERTY_EXTERNAL_LOGGER_CONFIG);
if (externalProperties != null &&
! (new File(externalProperties)).exists()) {
!
! if (loggingConfigured) {
! return;
! }
!
System.err.println("Info: loading LOG4J properties file at "
+ externalProperties);
***************
*** 505,510 ****
Constants.PROPERTY_REQUEST_EXTERNAL_LOGGER_CONFIG);
if (externalProperties != null &&
! (new File(externalProperties)).exists() &&
! !loggingConfigured) {
System.err.println("Info: loading LOG4J properties file at "
+ externalProperties);
--- 509,518 ----
Constants.PROPERTY_REQUEST_EXTERNAL_LOGGER_CONFIG);
if (externalProperties != null &&
! (new File(externalProperties)).exists()) {
!
! if (loggingConfigured) {
! return;
! }
!
System.err.println("Info: loading LOG4J properties file at "
+ externalProperties);
|
|
From: <cy...@us...> - 2003-06-02 04:44:00
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging
In directory sc8-pr-cvs1:/tmp/cvs-serv20504
Modified Files:
MessageHeader.java
Log Message:
Bug fix: <eb:DuplicateElimination> may be set added twice if
MessageHeader.setDuplicateElimination() is invoked before all fields
in <eb:MessageData> are set.
Index: MessageHeader.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/MessageHeader.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** MessageHeader.java 9 Apr 2003 07:48:24 -0000 1.11
--- MessageHeader.java 2 Jun 2003 04:22:18 -0000 1.12
***************
*** 1314,1318 ****
messageData.addChildElement(ELEMENT_TIME_TO_LIVE, timeToLive);
}
! if (duplicateElimination) {
addChildElement(ELEMENT_DUPLICATE_ELIMINATION);
}
--- 1314,1319 ----
messageData.addChildElement(ELEMENT_TIME_TO_LIVE, timeToLive);
}
! if (duplicateElimination &&
! !getChildElements(ELEMENT_DUPLICATE_ELIMINATION).hasNext()) {
addChildElement(ELEMENT_DUPLICATE_ELIMINATION);
}
|
|
From: <cy...@us...> - 2003-06-02 04:23:57
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging
In directory sc8-pr-cvs1:/tmp/cvs-serv21558
Modified Files:
Tag: b0931
MessageHeader.java
Log Message:
Bug fix: <eb:DuplicateElimination> may be set added twice if
MessageHeader.setDuplicateElimination() is invoked before all fields
in <eb:MessageData> are set.
Index: MessageHeader.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/packaging/MessageHeader.java,v
retrieving revision 1.10.2.1
retrieving revision 1.10.2.2
diff -C2 -d -r1.10.2.1 -r1.10.2.2
*** MessageHeader.java 9 Apr 2003 08:41:41 -0000 1.10.2.1
--- MessageHeader.java 2 Jun 2003 04:23:54 -0000 1.10.2.2
***************
*** 1314,1318 ****
messageData.addChildElement(ELEMENT_TIME_TO_LIVE, timeToLive);
}
! if (duplicateElimination) {
addChildElement(ELEMENT_DUPLICATE_ELIMINATION);
}
--- 1314,1319 ----
messageData.addChildElement(ELEMENT_TIME_TO_LIVE, timeToLive);
}
! if (duplicateElimination &&
! !getChildElements(ELEMENT_DUPLICATE_ELIMINATION).hasNext()) {
addChildElement(ELEMENT_DUPLICATE_ELIMINATION);
}
|
|
From: fleur <fle...@ms...> - 2003-06-02 04:17:08
|
Hi,Mr, I could not view the list of sourceforge, if I need the admin address to = login and view it. regards, CS |
|
From: <kc...@us...> - 2003-06-02 02:29:54
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/pki
In directory sc8-pr-cvs1:/tmp/cvs-serv22920/src/hk/hku/cecid/phoenix/pki
Modified Files:
Tag: b0931
ApacheXMLDSigner.java
Log Message:
bug fixed: cert path verifier result not checked
Index: ApacheXMLDSigner.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/pki/ApacheXMLDSigner.java,v
retrieving revision 1.4.2.4
retrieving revision 1.4.2.5
diff -C2 -d -r1.4.2.4 -r1.4.2.5
*** ApacheXMLDSigner.java 5 May 2003 08:37:01 -0000 1.4.2.4
--- ApacheXMLDSigner.java 2 Jun 2003 02:29:51 -0000 1.4.2.5
***************
*** 543,547 ****
logger.debug("start verifying cert path");
! CertPathVerifier.verify(certs, trusted);
logger.debug("verified, result: " + ret);
}
--- 543,547 ----
logger.debug("start verifying cert path");
! ret = CertPathVerifier.verify(certs, trusted);
logger.debug("verified, result: " + ret);
}
|
|
From: <kc...@us...> - 2003-06-02 02:28:00
|
Update of /cvsroot/ebxmlms/ebxmlms/doc
In directory sc8-pr-cvs1:/tmp/cvs-serv22380/doc
Modified Files:
Tag: b0931
change.txt
Log Message:
change log updated
Index: change.txt
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/doc/change.txt,v
retrieving revision 1.85.2.4
retrieving revision 1.85.2.5
diff -C2 -d -r1.85.2.4 -r1.85.2.5
*** change.txt 5 May 2003 06:57:25 -0000 1.85.2.4
--- change.txt 2 Jun 2003 02:27:57 -0000 1.85.2.5
***************
*** 627,628 ****
--- 627,630 ----
Modify request. Now it adds MessageOrder and SyncReply automatically if those parameters are passed in in constructor.
+
+ bug fixed: cert path verifier result not checked
|
|
From: <kc...@us...> - 2003-06-02 02:27:13
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/pki
In directory sc8-pr-cvs1:/tmp/cvs-serv22135/src/hk/hku/cecid/phoenix/pki
Modified Files:
ApacheXMLDSigner.java
Log Message:
bug fixed: cert path verifier result not checked
Index: ApacheXMLDSigner.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/pki/ApacheXMLDSigner.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ApacheXMLDSigner.java 5 May 2003 08:41:26 -0000 1.8
--- ApacheXMLDSigner.java 2 Jun 2003 02:27:07 -0000 1.9
***************
*** 543,547 ****
logger.debug("start verifying cert path");
! CertPathVerifier.verify(certs, trusted);
logger.debug("verified, result: " + ret);
}
--- 543,547 ----
logger.debug("start verifying cert path");
! ret = CertPathVerifier.verify(certs, trusted);
logger.debug("verified, result: " + ret);
}
|
|
From: <kc...@us...> - 2003-06-02 02:26:44
|
Update of /cvsroot/ebxmlms/ebxmlms/doc In directory sc8-pr-cvs1:/tmp/cvs-serv21967/doc Modified Files: change.txt Log Message: change log updated Index: change.txt =================================================================== RCS file: /cvsroot/ebxmlms/ebxmlms/doc/change.txt,v retrieving revision 1.98 retrieving revision 1.99 diff -C2 -d -r1.98 -r1.99 *** change.txt 27 May 2003 06:56:40 -0000 1.98 --- change.txt 2 Jun 2003 02:26:40 -0000 1.99 *************** *** 651,652 **** --- 651,654 ---- allow the user to specify null as ToMshUrl. In database, we will save it as <null>. We assume the ToMshUrlResolver mechanism will be used. If the mechanism fails, an exception will be thrown. + + bug fixed: cert path verifier result not checked |
|
From: <kc...@us...> - 2003-05-30 02:58:51
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv17540/src/hk/hku/cecid/phoenix/message/handler
Modified Files:
Tag: b0931
Utility.java
Log Message:
update version number
Index: Utility.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/Utility.java,v
retrieving revision 1.18.2.9
retrieving revision 1.18.2.10
diff -C2 -d -r1.18.2.9 -r1.18.2.10
*** Utility.java 28 May 2003 07:55:07 -0000 1.18.2.9
--- Utility.java 30 May 2003 02:49:51 -0000 1.18.2.10
***************
*** 116,120 ****
* implementation.
*/
! private static final String RELEASE = "0.9.3.1-rc5";
/**
--- 116,120 ----
* implementation.
*/
! private static final String RELEASE = "0.9.3.1";
/**
|
|
From: <kc...@us...> - 2003-05-30 02:52:05
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv18560/src/hk/hku/cecid/phoenix/message/handler
Modified Files:
Tag: b0931
Utility.java
Log Message:
update version number
Index: Utility.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/Utility.java,v
retrieving revision 1.18.2.10
retrieving revision 1.18.2.11
diff -C2 -d -r1.18.2.10 -r1.18.2.11
*** Utility.java 30 May 2003 02:49:51 -0000 1.18.2.10
--- Utility.java 30 May 2003 02:52:02 -0000 1.18.2.11
***************
*** 116,120 ****
* implementation.
*/
! private static final String RELEASE = "0.9.3.1";
/**
--- 116,120 ----
* implementation.
*/
! private static final String RELEASE = "0.9.3.1-sp1";
/**
|
|
From: <cy...@us...> - 2003-05-29 14:23:26
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv19250
Modified Files:
MessageServer.java
Log Message:
Upon reconstructing sentSequenceMap, sequence numbers of those messages
without MessageOrder (-9999 <= seqNo <= -1) should not be taken into
account.
Index: MessageServer.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/MessageServer.java,v
retrieving revision 1.137
retrieving revision 1.138
diff -C2 -d -r1.137 -r1.138
*** MessageServer.java 27 May 2003 06:53:30 -0000 1.137
--- MessageServer.java 29 May 2003 14:20:16 -0000 1.138
***************
*** 629,633 ****
String err = ErrorMessages.getMessage
(ErrorMessages.ERR_HERMES_UNKNOWN_ERROR, e);
! logger.error(err);
exception = new MessageServerException(err);
}
--- 629,633 ----
String err = ErrorMessages.getMessage
(ErrorMessages.ERR_HERMES_UNKNOWN_ERROR, e);
! logger.error(err);
exception = new MessageServerException(err);
}
***************
*** 689,693 ****
String err = ErrorMessages.getMessage
(ErrorMessages.ERR_HERMES_UNKNOWN_ERROR, e);
! logger.error(err);
exception = new MessageServerException(err);
}
--- 689,693 ----
String err = ErrorMessages.getMessage
(ErrorMessages.ERR_HERMES_UNKNOWN_ERROR, e);
! logger.error(err);
exception = new MessageServerException(err);
}
***************
*** 748,752 ****
String err = ErrorMessages.getMessage
(ErrorMessages.ERR_HERMES_UNKNOWN_ERROR, e);
! logger.error(err);
exception = new MessageServerException(err);
}
--- 748,752 ----
String err = ErrorMessages.getMessage
(ErrorMessages.ERR_HERMES_UNKNOWN_ERROR, e);
! logger.error(err);
exception = new MessageServerException(err);
}
***************
*** 2864,2868 ****
.append("mi.").append(DbTableManager.ATTRIBUTE_MESSAGE_ID)
.append(" AND ").append(DbTableManager.ATTRIBUTE_STATE)
! .append(">=").append(SENT_FROM_RANGE).append(" GROUP BY ")
.append("mi.").append(DbTableManager.ATTRIBUTE_CONVERSATION_ID);
sentQuery = tx.getConnection().prepareStatement(sql.toString());
--- 2864,2872 ----
.append("mi.").append(DbTableManager.ATTRIBUTE_MESSAGE_ID)
.append(" AND ").append(DbTableManager.ATTRIBUTE_STATE)
! .append(">=").append(SENT_FROM_RANGE).append(" AND ")
! .append(DbTableManager.ATTRIBUTE_SEQUENCE_NUMBER).append("<=")
! .append(FIRST_MESSAGE_ORDER_DELIVERED).append(" AND ")
! .append(DbTableManager.ATTRIBUTE_SEQUENCE_NUMBER).append(">=")
! .append(FIRST_MESSAGE_ORDER_UNDELIVERED).append(" GROUP BY ")
.append("mi.").append(DbTableManager.ATTRIBUTE_CONVERSATION_ID);
sentQuery = tx.getConnection().prepareStatement(sql.toString());
|
|
From: <cy...@us...> - 2003-05-29 07:45:04
|
Update of /cvsroot/ebxmlms/ebxmlms/lib In directory sc8-pr-cvs1:/tmp/cvs-serv14790 Modified Files: commons-logging.jar dom4j.jar Log Message: Upgrade to commons-logging 1.0.3 and dom4j 1.4 (commons-logging is used in Axis as well while dom4j is used in JAXM only). Index: commons-logging.jar =================================================================== RCS file: /cvsroot/ebxmlms/ebxmlms/lib/commons-logging.jar,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 Binary files /tmp/cvs7vmOpg and /tmp/cvsEAunrm differ Index: dom4j.jar =================================================================== RCS file: /cvsroot/ebxmlms/ebxmlms/lib/dom4j.jar,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 Binary files /tmp/cvsFAyqYi and /tmp/cvsfcjksl differ |
|
From: <kc...@us...> - 2003-05-28 07:55:11
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv28924/src/hk/hku/cecid/phoenix/message/handler
Modified Files:
Tag: b0931
Utility.java
Log Message:
update version number
Index: Utility.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/Utility.java,v
retrieving revision 1.18.2.8
retrieving revision 1.18.2.9
diff -C2 -d -r1.18.2.8 -r1.18.2.9
*** Utility.java 27 May 2003 03:30:56 -0000 1.18.2.8
--- Utility.java 28 May 2003 07:55:07 -0000 1.18.2.9
***************
*** 116,120 ****
* implementation.
*/
! private static final String RELEASE = "0.9.3.1-rc4";
/**
--- 116,120 ----
* implementation.
*/
! private static final String RELEASE = "0.9.3.1-rc5";
/**
|
|
From: <cy...@us...> - 2003-05-28 07:34:47
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv18137
Modified Files:
DeliveryRecord.java
Log Message:
Revert to the version 1.8. Previous bug fix leads to ambiguity in
delivering MessageOrder messages.
Index: DeliveryRecord.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/DeliveryRecord.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** DeliveryRecord.java 27 May 2003 02:21:51 -0000 1.10
--- DeliveryRecord.java 28 May 2003 07:34:43 -0000 1.11
***************
*** 109,113 ****
private int lastDelivered;
- private int prevLastDelivered;
private Set undeliveredSet;
--- 109,112 ----
***************
*** 115,119 ****
undeliveredSet = new TreeSet();
lastDelivered = -1;
- prevLastDelivered = 0;
}
--- 114,117 ----
***************
*** 125,144 ****
lastDelivered++;
undeliveredSet.remove(new Integer(lastDelivered));
- if (undeliveredSet.isEmpty()) {
- prevLastDelivered = lastDelivered;
- lastDelivered = -1;
- }
}
void decLastDelivered() {
! if (lastDelivered != -1) {
! undeliveredSet.add(new Integer(lastDelivered));
! lastDelivered--;
! }
! else {
! undeliveredSet.add(new Integer(prevLastDelivered));
! lastDelivered = prevLastDelivered - 1;
! prevLastDelivered = 0;
! }
}
--- 123,131 ----
lastDelivered++;
undeliveredSet.remove(new Integer(lastDelivered));
}
void decLastDelivered() {
! undeliveredSet.add(new Integer(lastDelivered));
! lastDelivered--;
}
|
|
From: <cy...@us...> - 2003-05-28 07:24:32
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv13102
Modified Files:
Tag: b0931
DeliveryRecord.java
Log Message:
Revert to the previous version. Previous bug fix leads to ambiguity in
delivering MessageOrder messages.
Index: DeliveryRecord.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/DeliveryRecord.java,v
retrieving revision 1.6.2.3
retrieving revision 1.6.2.4
diff -C2 -d -r1.6.2.3 -r1.6.2.4
*** DeliveryRecord.java 25 May 2003 04:11:58 -0000 1.6.2.3
--- DeliveryRecord.java 28 May 2003 07:24:27 -0000 1.6.2.4
***************
*** 110,114 ****
private int lastDelivered;
- private int prevLastDelivered;
private Set undeliveredSet;
--- 110,113 ----
***************
*** 116,120 ****
undeliveredSet = new TreeSet();
lastDelivered = -1;
- prevLastDelivered = 0;
}
--- 115,118 ----
***************
*** 126,145 ****
lastDelivered++;
undeliveredSet.remove(new Integer(lastDelivered));
- if (undeliveredSet.isEmpty()) {
- prevLastDelivered = lastDelivered;
- lastDelivered = -1;
- }
}
void decLastDelivered() {
! if (lastDelivered != -1) {
! undeliveredSet.add(new Integer(lastDelivered));
! lastDelivered--;
! }
! else {
! undeliveredSet.add(new Integer(prevLastDelivered));
! lastDelivered = prevLastDelivered - 1;
! prevLastDelivered = 0;
! }
}
--- 124,132 ----
lastDelivered++;
undeliveredSet.remove(new Integer(lastDelivered));
}
void decLastDelivered() {
! undeliveredSet.add(new Integer(lastDelivered));
! lastDelivered--;
}
|
|
From: <kc...@us...> - 2003-05-27 06:56:43
|
Update of /cvsroot/ebxmlms/ebxmlms/doc In directory sc8-pr-cvs1:/tmp/cvs-serv29924/doc Modified Files: change.txt Log Message: update change log Index: change.txt =================================================================== RCS file: /cvsroot/ebxmlms/ebxmlms/doc/change.txt,v retrieving revision 1.97 retrieving revision 1.98 diff -C2 -d -r1.97 -r1.98 *** change.txt 27 May 2003 03:02:17 -0000 1.97 --- change.txt 27 May 2003 06:56:40 -0000 1.98 *************** *** 649,650 **** --- 649,652 ---- added external configuration method for log4j + + allow the user to specify null as ToMshUrl. In database, we will save it as <null>. We assume the ToMshUrlResolver mechanism will be used. If the mechanism fails, an exception will be thrown. |
|
From: <kc...@us...> - 2003-05-27 06:55:04
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler
In directory sc8-pr-cvs1:/tmp/cvs-serv29120
Modified Files:
Request.java
Log Message:
relax the checking of toMshUrl and ToPartyID, as the user might choose to use the ToMshUrlResolver mechanism
Index: Request.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/handler/Request.java,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -d -r1.71 -r1.72
*** Request.java 20 May 2003 09:00:40 -0000 1.71
--- Request.java 27 May 2003 06:55:01 -0000 1.72
***************
*** 1104,1107 ****
--- 1104,1108 ----
*/
public void send(EbxmlMessage ebxmlMessage) throws RequestException {
+ /*
if (toMshUrl == null) {
try {
***************
*** 1114,1117 ****
--- 1115,1119 ----
}
}
+ */
checkPayload(ebxmlMessage);
***************
*** 1319,1322 ****
--- 1321,1325 ----
public void sendReliably(EbxmlMessage ebxmlMessage, boolean signed)
throws RequestException {
+ /*
if (toMshUrl == null) {
try {
***************
*** 1329,1332 ****
--- 1332,1336 ----
}
}
+ */
if (appContext == null) {
|