Tabnine Logo
AxisDescription
Code IndexAdd Tabnine to your IDE (free)

How to use
AxisDescription
in
org.apache.axis2.description

Best Java code snippets using org.apache.axis2.description.AxisDescription (Showing top 20 results out of 315)

origin: org.wso2.mercury/mercury-core

  public void setEnforceRM(boolean enforceRM) throws AxisFault {
    this.axisDescription.addParameter(MercuryConstants.ENFORCE_RM, String.valueOf(enforceRM));
  }
}
origin: org.apache.axis2/axis2-kernel

private PolicyInclude getParent() {
  if (description != null && description.getParent() != null) {
    return description.getParent().getPolicyInclude();
  }
  return null;
}
origin: org.wso2.mercury/mercury-core

public long getRMSSequenceTimeout() {
  long rmsSequeenceTimeout = 60000;
  if (axisDescription.getParameter(MercuryConstants.RMS_SEQUENCE_TIMEOUT) != null) {
    rmsSequeenceTimeout =
        Long.parseLong((String) axisDescription.getParameter(
            MercuryConstants.RMS_SEQUENCE_TIMEOUT).getValue());
  }
  return rmsSequeenceTimeout;
}
origin: org.apache.axis2/axis2-kernel

public boolean isParameterLocked(String parameterName) {
  if (this.parent != null && this.parent.isParameterLocked(parameterName)) {
    return true;
  }
  Parameter parameter = getParameter(parameterName);
  return parameter != null && parameter.isLocked();
}
origin: org.apache.axis2/axis2-kernel

/**
 * Applies the policies on the Description Hierarchy recursively.
 *
 * @throws AxisFault an error occurred applying the policy
 */
public void applyPolicy() throws AxisFault {
  AxisConfiguration configuration = getAxisConfiguration();
  if (configuration == null) {
    return;
  }
  Policy applicablePolicy = getApplicablePolicy(this);
  if (applicablePolicy != null) {
    engageModulesForPolicy(applicablePolicy, configuration);
  }
  for (Iterator<? extends AxisDescription> children = getChildren(); children.hasNext();) {
    AxisDescription child = children.next();
    child.applyPolicy();
  }
}
origin: org.apache.sandesha2/sandesha2-core

public void engageNotify(AxisDescription axisDescription) throws AxisFault {
  if(log.isDebugEnabled()) log.debug("Entry: SandeshaModule::engageNotify, " + axisDescription);
  AxisDescription parent = axisDescription.getParent();
  SandeshaPolicyBean parentPropertyBean = null;
  if(parent != null) parentPropertyBean = SandeshaUtil.getPropertyBean(parent);
    parameter.setName(Sandesha2Constants.SANDESHA_PROPERTY_BEAN);
    parameter.setValue(axisDescPropertyBean);
    axisDescription.addParameter(parameter);
        op.getParent().addParameter(p);
origin: org.apache.axis2/axis2-kernel

axisDescription.getParameter(AddressingConstants.ADDRESSING_REQUIREMENT_PARAMETER);
  axisDescription.addParameter(param);
} catch (AxisFault af) {
origin: org.apache.axis2/axis2-kernel

public boolean isEngaged(AxisModule axisModule) {
  boolean isEngaged = super.isEngaged(axisModule);
  if (!isEngaged) {
    isEngaged = engagedModules != null &&
          engagedModules.values().contains(axisModule);
  }
  return isEngaged;
}
origin: org.apache.axis2/axis2-kernel

public static String generateId(AxisDescription description) {
  PolicySubject policySubject = description.getPolicySubject();
  String identifier = "-policy-1";
  if (description instanceof AxisMessage) {
    identifier = "msg-" + ((AxisMessage) description).getName()
        + identifier;
    description = description.getParent();
  }
  if (description instanceof AxisOperation) {
    identifier = "op-" + ((AxisOperation) description).getName()
        + identifier;
    description = description.getParent();
  }
  if (description instanceof AxisService) {
    identifier = "service-" + ((AxisService) description).getName()
        + identifier;
  }
  /*
   * Int 49 is the value of the Character '1'. Here we want to change '1'
   * to '2' or '2' to '3' .. etc. to construct a unique identifier.
   */
  for (int index = 49; policySubject.getAttachedPolicyComponent(identifier) != null; index++) {
    identifier = identifier.replace((char) index, (char) (index + 1));
  }
  return identifier;
}
origin: org.apache.axis2/axis2-kernel

/**
 * @deprecated As of 1.4 release. You can't override a policies that
 *             applicable for the current policy scope via
 *             {@link PolicyInclude #setEffectivePolicy(Policy)}. In case
 *             you need to make a policy the only policy that is within the
 *             policy cache of an {@link AxisDescription} please use
 *             {@link PolicySubject #clear()} and
 *             {@link PolicySubject #attachPolicy(Policy)} accordingly.
 * 
 */
public void setEffectivePolicy(Policy effectivePolicy) {
  this.effectivePolicy = effectivePolicy;
  
  if (description != null && effectivePolicy != null) {
    description.getPolicySubject().clear();
    description.getPolicySubject().attachPolicy(effectivePolicy);
  }
}
origin: org.wso2.wsas/wso2wsas-admin

String moduleName = axisModule.getName();
if (SystemFilter.isFilteredOutModule(moduleName) ||
  axisDesc.getParent().isEngaged(axisModule)) {
  continue;
origin: org.apache.axis2/axis2-kernel

private static AxisService getAxisService(AxisDescription description) {
  if (description == null || description instanceof AxisService) {
    return (AxisService) description;
  } else {
    return getAxisService(description.getParent());
  }
}                              
  
origin: org.apache.axis2/axis2-kernel

  /**
   * Engages the list of Modules to the specified AxisDescription.
   */
  private void engageModulesToAxisDescription(List modulesToEngage,
                        AxisDescription axisDescription) throws AxisFault {
    AxisModule axisModule;
    String moduleName;

    for (Iterator iterator = modulesToEngage.iterator(); iterator.hasNext();) {
      axisModule = (AxisModule) iterator.next();
      moduleName = axisModule.getName();

      if (!axisDescription.isEngaged(moduleName)) {
        axisDescription.engageModule(axisModule);
        (axisModule.getModule()).engageNotify(axisDescription);
      }
    }
  }
}
origin: org.apache.axis2/axis2-kernel

public void disengageModule(AxisModule module) throws AxisFault {
  if (module == null || engagedModules == null)
    return;
  // String id = Utils.getModuleName(module.getName(),
  // module.getVersion());
  if (isEngaged(module)) {
    onDisengage(module);
    engagedModules.remove(module.getArchiveName());
    /**
     * if a Disengaged module belogs to an AxisService or an Operation
     * notify with a serviceUpdate
     */
    getAxisConfiguration().notifyObservers(new AxisEvent(AxisEvent.MODULE_DISENGAGED, this), module);
  }
}
origin: apache/axis2-java

private Policy findPolicy(String id, AxisDescription des) {
    Collection<PolicyComponent> policyElements = des.getPolicySubject().getAttachedPolicyComponents();
  PolicyRegistry registry = new PolicyRegistryImpl();
  Object policyComponent;
  Policy policy = registry.lookup(id);
  if (policy != null) {
    return policy;
  }
  for (Iterator<PolicyComponent> iterator = policyElements.iterator(); iterator.hasNext();) {
    policyComponent = iterator.next();
    if (policyComponent instanceof Policy) {
      // policy found for the id
      if (id.equals(((Policy) policyComponent).getId())) {
        return (Policy) policyComponent;
      }
    }
  }
  AxisDescription child;
  for (Iterator<? extends AxisDescription> iterator = des.getChildren(); iterator.hasNext();) {
    child = (AxisDescription) iterator.next();
    policy = findPolicy(id, child);
    if (policy != null) {
      return policy;
    }
  }
  return null;
}
origin: org.apache.axis2/axis2-kernel

/**
 * This method sets the policy as the default of this AxisDescription instance. Further more
 * this method does the followings. <p/> (1) Engage whatever modules necessary to execute new
 * the effective policy of this AxisDescription instance. (2) Disengage whatever modules that
 * are not necessary to execute the new effective policy of this AxisDescription instance. (3)
 * Check whether each module can execute the new effective policy of this AxisDescription
 * instance. (4) If not throw an AxisFault to notify the user. (5) Else notify each module about
 * the new effective policy.
 *
 * @param policy the new policy of this AxisDescription instance. The effective policy is the
 *               merge of this argument with effective policy of parent of this
 *               AxisDescription.
 * @throws AxisFault if any module is unable to execute the effective policy of this
 *                   AxisDescription instance successfully or no module to execute some portion
 *                   (one or more PrimtiveAssertions ) of that effective policy.
 */
public void applyPolicy(Policy policy) throws AxisFault {
  // sets AxisDescription policy
  getPolicySubject().clear();
  getPolicySubject().attachPolicy(policy);
  /*
    * now we try to engage appropriate modules based on the merged policy
    * of axis description object and the corresponding axis binding
    * description object.
    */
  applyPolicy();
}
origin: org.apache.axis2/axis2-kernel

public static void addPoliciesAsExtensibleElement(
    AxisDescription description, OMElement descriptionElement) {
  PolicySubject policySubject = description.getPolicySubject();
  Collection attachPolicyComponents = policySubject
      .getAttachedPolicyComponents();
    filter = new ExternalPolicySerializer();
    AxisConfiguration axisConfiguration = description
        .getAxisConfiguration();
    if (axisConfiguration != null) {
      filter.setAssertionsToFilter(axisConfiguration
origin: org.apache.axis2/axis2-kernel

public Iterator<AxisBindingOperation> getChildren(){
  return (Iterator<AxisBindingOperation>) super.getChildren();
}

origin: org.codehaus.fabric3/fabric3-binding-ws-axis2

public void applyPolicy(AxisDescription axisDescription, Element policy) {
  try {
    OMElement policyElement = 
      (OMElement) new OMDOMFactory().getDocument().importNode(policy, true);
    axisDescription.applyPolicy(PolicyEngine.getPolicy(policyElement));
  } catch (Exception e) {
    // TODO Handle exception properly
    throw new AssertionError(e);
  }
}
origin: org.apache.sandesha2/sandesha2-core

public static SandeshaPolicyBean loadPropertiesFromAxisDescription(AxisDescription desc,
    SandeshaPolicyBean parentPropertyBean) throws SandeshaException {
  Policy policy = desc.getPolicyInclude().getEffectivePolicy();
org.apache.axis2.descriptionAxisDescription

Most used methods

  • addParameter
  • getParent
  • getParameter
    If the parameter is found in the current description then the Parameter will be writable else it wil
  • isEngaged
  • applyPolicy
    This method sets the policy as the default of this AxisDescription instance. Further more this metho
  • getChildren
  • getPolicyInclude
  • getPolicySubject
  • canSupportAssertion
  • engageModule
    Engage a Module at this level, keeping track of which level the engage was originally called from. T
  • engageModulesForPolicy
  • engageModulesToAxisDescription
  • engageModulesForPolicy,
  • engageModulesToAxisDescription,
  • getApplicablePolicy,
  • getAxisConfiguration,
  • getDocumentationNode,
  • getKey,
  • isParameterLocked,
  • onDisengage,
  • onEngage,
  • setDocumentation

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now