Esempio n. 1
0
 public InOnlyAxisOperation() {
   super();
   // setup a temporary name
   QName tmpName = new QName(this.getClass().getName() + "_" + UUIDGenerator.getUUID());
   this.setName(tmpName);
   createMessage();
   setMessageExchangePattern(WSDL2Constants.MEP_URI_IN_ONLY);
 }
 /** Create the initial message context for the file */
 private org.apache.synapse.MessageContext createMessageContext() {
   org.apache.synapse.MessageContext msgCtx = synapseEnvironment.createMessageContext();
   MessageContext axis2MsgCtx =
       ((org.apache.synapse.core.axis2.Axis2MessageContext) msgCtx).getAxis2MessageContext();
   axis2MsgCtx.setServerSide(true);
   axis2MsgCtx.setMessageID(UUIDGenerator.getUUID());
   return msgCtx;
 }
 /** Create the initial message context for the file */
 private org.apache.synapse.MessageContext createMessageContext() {
   org.apache.synapse.MessageContext msgCtx = synapseEnvironment.createMessageContext();
   // Need to set this to build the message
   msgCtx.setProperty(SynapseConstants.INBOUND_JMS_PROTOCOL, true);
   MessageContext axis2MsgCtx =
       ((org.apache.synapse.core.axis2.Axis2MessageContext) msgCtx).getAxis2MessageContext();
   axis2MsgCtx.setServerSide(true);
   axis2MsgCtx.setMessageID(UUIDGenerator.getUUID());
   PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext();
   axis2MsgCtx.setProperty(MultitenantConstants.TENANT_DOMAIN, carbonContext.getTenantDomain());
   // There is a discrepency in what I thought, Axis2 spawns a nes threads
   // to
   // send a message is this is TRUE - and I want it to be the other way
   msgCtx.setProperty(MessageContext.CLIENT_API_NON_BLOCKING, true);
   return msgCtx;
 }
 /**
  * This method is used to generate a file name appender for the pub. cert, e.g.
  * example-com-343743.cert
  *
  * @return generated string to be used as a file name appender
  */
 private String generatePubKeyFileNameAppender() {
   String uuid = UUIDGenerator.getUUID();
   return uuid.substring(uuid.length() - 6, uuid.length() - 1);
 }
 /**
  * Constructs an InputNode.
  *
  * @param nodeElement
  * @throws GraphException
  */
 public StreamSourceNode(XmlElement nodeElement) throws GraphException {
   super(nodeElement);
   this.label = UUIDGenerator.getUUID();
 }
 /**
  * Creates an InputNode.
  *
  * @param graph
  */
 public StreamSourceNode(Graph graph) {
   super(graph);
   this.label = UUIDGenerator.getUUID();
 }