/** * Get the version of this AXIS. * * @return the version of this axis2 */ public static String getVersion() { return Messages.getMessage("axisVersion") + "\n" + Messages.getMessage("builtOn"); }
/** * Returns the Axis Version number and build date. * <p/> * Example output: 1.1 Jul 08, 2003 (09:00:12 EDT) * * @return the full version of this axis2 */ public static String getVersionText() { return Messages.getMessage("axisVersionRaw"); }
public void execute(Runnable worker) { if (shutDown) { throw new RuntimeException(Messages.getMessage("threadpoolshutdown")); } executor.execute(worker); }
protected static Object makeNewServiceObject(AxisService service) throws AxisFault { Object serviceObject = Utils.createServiceObject(service); if (serviceObject == null) { throw new AxisFault( Messages.getMessage("paramIsNotSpecified", "SERVICE_OBJECT_SUPPLIER")); } else { return serviceObject; } }
public AxisMessage getMessage(String label) { if (WSDLConstants.MESSAGE_LABEL_IN_VALUE.equals(label)) { return (AxisMessage) getChild("inMessage"); } else { throw new UnsupportedOperationException(Messages.getMessage("invalidacess")); } }
public SOAPFactory getSOAPFactory(org.apache.axis2.context.MessageContext msgContext) throws AxisFault { String nsURI = msgContext.getEnvelope().getNamespace().getNamespaceURI(); if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(nsURI)) { return OMAbstractFactory.getSOAP12Factory(); } else if (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(nsURI)) { return OMAbstractFactory.getSOAP11Factory(); } else { throw new AxisFault(Messages.getMessage("invalidSOAPversion")); } } }
public SOAPFactory getSOAPFactory(MessageContext msgContext) throws AxisFault { String nsURI = msgContext.getEnvelope().getNamespace().getNamespaceURI(); if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(nsURI)) { return OMAbstractFactory.getSOAP12Factory(); } else if (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(nsURI)) { return OMAbstractFactory.getSOAP11Factory(); } else { throw new AxisFault(Messages.getMessage("invalidSOAPversion")); } }
private SOAPFactory getSOAPFactory(MessageContext msgContext) throws AxisFault { String nsURI = msgContext.getEnvelope().getNamespace().getNamespaceURI(); if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(nsURI)) { return OMAbstractFactory.getSOAP12Factory(); } else if (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(nsURI)) { return OMAbstractFactory.getSOAP11Factory(); } else { throw new AxisFault(Messages.getMessage("invalidSOAPversion")); } } }
public void addFaultMessageContext(MessageContext msgContext, OperationContext opContext) throws AxisFault { HashMap<String, MessageContext> mep = opContext.getMessageContexts(); MessageContext faultMessageCtxt = (MessageContext) mep.get(MESSAGE_LABEL_FAULT_VALUE); if (faultMessageCtxt != null) { throw new AxisFault(Messages.getMessage("mepcompleted")); } else { mep.put(MESSAGE_LABEL_FAULT_VALUE, msgContext); opContext.setComplete(true); opContext.cleanup(); } }
public void addFaultMessageContext(MessageContext msgContext, OperationContext opContext) throws AxisFault { HashMap<String, MessageContext> mep = opContext.getMessageContexts(); MessageContext faultMessageCtxt = (MessageContext) mep.get(MESSAGE_LABEL_FAULT_VALUE); if (faultMessageCtxt != null) { throw new AxisFault(Messages.getMessage("mepcompleted")); } else { mep.put(MESSAGE_LABEL_FAULT_VALUE, msgContext); opContext.setComplete(true); opContext.cleanup(); } }
public void addFaultMessageContext(MessageContext msgContext, OperationContext opContext) throws AxisFault { HashMap mep = opContext.getMessageContexts(); MessageContext faultMessageCtxt = (MessageContext) mep.get(MESSAGE_LABEL_FAULT_VALUE); if (faultMessageCtxt != null) { throw new AxisFault(Messages.getMessage("mepcompleted")); } else { mep.put(MESSAGE_LABEL_FAULT_VALUE, msgContext); opContext.setComplete(true); opContext.cleanup(); } }
public void addMessageContext(MessageContext msgContext, OperationContext opContext) throws AxisFault { if (!opContext.isComplete()) { opContext.getMessageContexts().put(MESSAGE_LABEL_IN_VALUE, msgContext); opContext.setComplete(true); } else { throw new AxisFault(Messages.getMessage("mepcompleted")); } }
public void startService(String serviceName) throws AxisFault { AxisService service = allServices.get(serviceName); if (service == null) { throw new AxisFault(Messages.getMessage("servicenamenotvalid", serviceName)); } service.setActive(true); notifyObservers(new AxisEvent(AxisEvent.SERVICE_START , service), service); }
public void stopService(String serviceName) throws AxisFault { AxisService service = allServices.get(serviceName); if (service == null) { throw new AxisFault(Messages.getMessage("servicenamenotvalid", serviceName)); } service.setActive(false); notifyObservers(new AxisEvent(AxisEvent.SERVICE_STOP , service), service); }
/** * Add a Parameter * * @param param the Parameter to associate with this HandlerDescription */ public void addParameter(Parameter param) throws AxisFault { if (isParameterLocked(param.getName())) { throw new AxisFault(Messages.getMessage("paramterlockedbyparent", param.getName())); } else { parameterInclude.addParameter(param); } }
public void removeParameter(Parameter param) throws AxisFault { if (isParameterLocked(param.getName())) { throw new AxisFault(Messages.getMessage("paramterlockedbyparent", param.getName())); } else { parameters.removeParameter(param); } }
/** * @param param : Parameter to be added */ public void addParameter(Parameter param) throws AxisFault { if (isParameterLocked(param.getName())) { throw new AxisFault(Messages.getMessage("paramterlockedbyparent", param.getName())); } else { parameters.addParameter(param); } }
public void addParameter(Parameter param) throws AxisFault { if (isParameterLocked(param.getName())) { throw new AxisFault(Messages.getMessage("paramterlockedbyparent", param.getName())); } else { parameterInclude.addParameter(param); } }
public void removeParameter(Parameter param) throws AxisFault { if (isParameterLocked(param.getName())) { throw new AxisFault(Messages.getMessage("paramterlockedbyparent", param.getName())); } else { parameterInclude.removeParameter(param); } }
public void removeParameter(Parameter param) throws AxisFault { if (isParameterLocked(param.getName())) { throw new AxisFault(Messages.getMessage("paramterlockedbyparent", param.getName())); } else { parameterInclude.removeParameter(param); } }