Exemplo n.º 1
0
 public static void main(String[] args) {
   synchronized (System.out) {
     System.out.println("Starting");
   }
   java.util.ArrayList<Integer> al = new java.util.ArrayList<Integer>();
   for (int x = 0; x < 1000; x++) {
     al.add(x);
   }
   java.util.TreeMap tm = new java.util.TreeMap();
   System.out.println("Done.");
 }
 private void getNonExplicitAttachment(StreamingHandlerState state) throws Exception {
   javax.xml.rpc.handler.soap.SOAPMessageContext smc = state.getMessageContext();
   javax.xml.soap.SOAPMessage message = state.getRequest().getMessage();
   java.util.ArrayList attachments = null;
   for (java.util.Iterator iter = message.getAttachments(); iter.hasNext(); ) {
     if (attachments == null) {
       attachments = new java.util.ArrayList();
     }
     attachments.add(iter.next());
   }
   smc.setProperty(
       com.sun.xml.rpc.server.ServerPropertyConstants.GET_ATTACHMENT_PROPERTY, attachments);
 }