private String getRequestElementSuffix() { String requestElementSuffix = null; Parameter param = service.getParameter(Java2WSDLConstants.REQUEST_ELEMENT_SUFFIX_OPTION_LONG); if (param != null) { requestElementSuffix = (String) param.getValue(); } return requestElementSuffix; }
private long getResponseTime(AxisService axisService) { Parameter responseTimeParameter = axisService.getParameter( StatisticsConstants.SERVICE_RESPONSE_TIME); if (responseTimeParameter != null) { Object value = responseTimeParameter.getValue(); if (value instanceof Long) { return (Long) value; } } return 0; }
public Definition getWSDL(AxisService service) throws AxisFault { Parameter wsdlParameter = service.getParameter(WSDLConstants.WSDL_4_J_DEFINITION); if (wsdlParameter != null) { Object value = wsdlParameter.getValue(); if (value != null) { return (Definition) value; } } initialize(service); return wsdlDefMap.values().iterator().next(); }
protected boolean isDisableSOAP11() { boolean disableSOAP11 = false; Parameter disableSOAP11Parameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_SOAP11); if (disableSOAP11Parameter != null && JavaUtils.isTrueExplicitly(disableSOAP11Parameter.getValue())) { disableSOAP11 = true; } return disableSOAP11; }
protected boolean isDisableSOAP12() { // axis2.xml indicated no SOAP 1.2 binding? boolean disableSOAP12 = false; Parameter disableSOAP12Parameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_SOAP12); if (disableSOAP12Parameter != null && JavaUtils.isTrueExplicitly(disableSOAP12Parameter.getValue())) { disableSOAP12 = true; } return disableSOAP12; }
private boolean isAnonymousTypesDisallowed() { boolean disallowAnonTypes = false; Parameter param = service.getParameter(Java2WSDLConstants.DISALLOW_ANON_TYPES_OPTION_LONG); if (param != null) { disallowAnonTypes = JavaUtils.isTrueExplicitly(param.getValue()); } return disallowAnonTypes; }
protected boolean isDisableSOAP12() { // axis2.xml indicated no SOAP 1.2 binding? boolean disableSOAP12 = false; Parameter disableSOAP12Parameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_SOAP12); if (disableSOAP12Parameter != null && JavaUtils.isTrueExplicitly(disableSOAP12Parameter.getValue())) { disableSOAP12 = true; } return disableSOAP12; }
protected OMElement generateInterface(OMFactory omFactory) throws AxisFault, URISyntaxException, XMLStreamException, FactoryConfigurationError { Parameter parameter = axisService.getParameter(WSDL2Constants.INTERFACE_LOCAL_NAME); if (parameter != null) { interfaceName = (String) parameter.getValue(); } else { interfaceName = WSDL2Constants.DEFAULT_INTERFACE_NAME; } // Add the interface element return getInterfaceElement(wsdl, tns, wsdlx, wrpc, omFactory, interfaceName); }
public double getAvgServiceResponseTime(AxisService axisService) throws AxisFault { double avg = 0; Parameter parameter = axisService.getParameter(StatisticsConstants.SERVICE_RESPONSE_TIME_PROCESSOR); if (parameter != null) { ResponseTimeProcessor proc = (ResponseTimeProcessor) parameter.getValue(); avg = proc.getAvgResponseTime(); } return avg; }
public static void addAxisOperationsFromWSDL(final AxisService service) throws AxisFault { @SuppressWarnings("unchecked") final ServiceContext<Consumes> serviceContext = (ServiceContext<Consumes>) service .getParameter(SoapConstants.Axis2.CONSUMES_SERVICE_CONTEXT_PARAM).getValue(); addAxisOperationsFromWSDL(service, null, serviceContext); }
protected boolean isDisableREST() { // axis2.xml indicated no HTTP binding? boolean disableREST = false; Parameter disableRESTParameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_REST); if (disableRESTParameter != null && JavaUtils.isTrueExplicitly(disableRESTParameter.getValue())) { disableREST = true; } return disableREST; }
protected boolean isDisableREST() { // axis2.xml indicated no HTTP binding? boolean disableREST = false; Parameter disableRESTParameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_REST); if (disableRESTParameter != null && JavaUtils.isTrueExplicitly(disableRESTParameter.getValue())) { disableREST = true; } return disableREST; }
protected boolean isDisableSOAP11() { boolean disableSOAP11 = false; Parameter disableSOAP11Parameter = axisService .getParameter(org.apache.axis2.Constants.Configuration.DISABLE_SOAP11); if (disableSOAP11Parameter != null && JavaUtils.isTrueExplicitly(disableSOAP11Parameter.getValue())) { disableSOAP11 = true; } return disableSOAP11; }
public long getMaxServiceResponseTime(AxisService axisService) throws AxisFault { long max = 0; Parameter parameter = axisService.getParameter(StatisticsConstants.SERVICE_RESPONSE_TIME_PROCESSOR); if (parameter != null) { ResponseTimeProcessor proc = (ResponseTimeProcessor) parameter.getValue(); max = proc.getMaxResponseTime(); } return max; }
private AxisServiceGroup createServiceGroupForService(AxisService svc) throws AxisFault { AxisServiceGroup svcGroup = new AxisServiceGroup(); svcGroup.setServiceGroupName(svc.getName()); svcGroup.addService(svc); // Checking configured using files param is not a good solution. We must figure out a way to handle this // at Carbon persistence manager layer. if (svc.getParameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM) != null && svc.getParameter(BusinessProcessConstants.CONFIGURED_USING_BPEL_PKG_CONFIG_FILES) == null) { svcGroup.addParameter(new Parameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true")); } return svcGroup; }
private EndpointDescription getEndpointDescription(MessageContext mc) { AxisService axisSvc = mc.getAxisMessageContext().getAxisService(); Parameter param = axisSvc.getParameter(EndpointDescription.AXIS_SERVICE_PARAMETER); EndpointDescription ed = (EndpointDescription) param.getValue(); return ed; }
private synchronized void initialize(AxisService service) { String className = (String) axisService.getParameter(Constants.SERVICE_CLASS).getValue(); if (!init) { generateWsdl(className, SOAPBinding.SOAP11HTTP_BINDING, getCatalogManager(service)); init = true; } }
public MqttConnectionFactory getConnectionFactory(AxisService service) { Parameter conFacParam = service.getParameter(MqttConstants.PARAM_MQTT_CONFAC); // validate connection factory name (specified or default) if (conFacParam != null) { return connectionFactoryManager.getMqttConnectionFactory((String) conFacParam.getValue()); } else { return connectionFactoryManager.getMqttConnectionFactory(MqttConstants.DEFAULT_CONFAC_NAME); } } }
/** * Get the CatalogManager associated with an AxisService * @return the CatalogManager in use for this AxisService */ public static JAXWSCatalogManager getCatalogManager(AxisService service) { Parameter param = service.getParameter(EndpointDescription.AXIS_SERVICE_PARAMETER); if (param != null) { EndpointDescription ed = (EndpointDescription)param.getValue(); return ed.getServiceDescription().getCatalogManager(); } else return new OASISCatalogManager(); }
private static QName getWrapperQName(MessageContext msgContext) { QName wrapperQName = BaseConstants.DEFAULT_TEXT_WRAPPER; if (msgContext.getAxisService() != null) { Parameter wrapperParam = msgContext.getAxisService().getParameter(BaseConstants.WRAPPER_PARAM); if (wrapperParam != null) { wrapperQName = BaseUtils.getQNameFromString(wrapperParam.getValue()); } } return wrapperQName; }