Skip to content
Permalink
Browse files
Replaced some usages of UUIDGenerator by UIDGenerator.
  • Loading branch information
veithen committed May 23, 2010
1 parent 97d1fde commit bbfb0388a2af56a4e4aca527d74bd18431c10170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
@@ -21,7 +21,7 @@

import javax.mail.internet.ContentType;

import org.apache.axiom.om.util.UUIDGenerator;
import org.apache.axiom.util.UIDGenerator;

public class ClientOptions {
private final ContentType transportContentType;
@@ -45,20 +45,14 @@ public String getCharset() {

public String getMimeBoundary() {
if (mimeBoundary == null) {
mimeBoundary =
"MIMEBoundary"
+ UUIDGenerator.getUUID().replace(':', '_');

mimeBoundary = UIDGenerator.generateMimeBoundary();
}
return mimeBoundary;
}

public String getRootContentId() {
if (rootContentId == null) {
rootContentId =
"0."
+ UUIDGenerator.getUUID()
+ "@apache.org";
rootContentId = UIDGenerator.generateContentId();
}
return rootContentId;
}
@@ -32,6 +32,7 @@
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.util.UUIDGenerator;
import org.apache.axiom.util.UIDGenerator;
import org.apache.axis2.transport.testkit.channel.AsyncChannel;
import org.apache.axis2.transport.testkit.client.AsyncTestClient;
import org.apache.axis2.transport.testkit.endpoint.AsyncEndpoint;
@@ -54,7 +55,7 @@ protected void setUp() throws Exception {
super.setUp();
attachmentContent = new byte[8192];
random.nextBytes(attachmentContent);
contentID = UUIDGenerator.getUUID();
contentID = UIDGenerator.generateContentId();
}

@Override

0 comments on commit bbfb038

Please sign in to comment.