Examples of Properties


Examples of org.docx4j.docProps.extended.Properties

        }       
        if (part instanceof DocPropsExtendedPart) {
          boolean appWrite= Boolean.parseBoolean(
              Docx4jProperties.getProperties().getProperty("docx4j.App.write", "false"));
          if (appWrite) {
            Properties cp = ((DocPropsExtendedPart)part).getJaxbElement();
           
            cp.setApplication(
                Docx4jProperties.getProperties().getProperty("docx4j.Application", "docx4j")
                );
           
            String version = Docx4jProperties.getProperties().getProperty("docx4j.AppVersion");
            if ( version!=null ) {
              cp.setAppVersion(version);
            }
           
          }
        }
View Full Code Here

Examples of org.eweb4j.config.bean.Properties

  }
 
  public static ConfigBean getConfigBean() {
    ConfigBean configBean = new ConfigBean();
   
    Properties props = new Properties();
    Prop file = new Prop();
    props.getFile().add(file);
    configBean.setProperties(props);
   
    ConfigIOC ioc = new ConfigIOC();
    IOCXmlFiles iocXmlFiles = new IOCXmlFiles();
    iocXmlFiles.setPath(new ArrayList<String>());
View Full Code Here

Examples of org.exolab.jms.net.util.Properties

        ssl.setKeyStoreType("JKS");
        ssl.setTrustStore("trustStore");
        ssl.setTrustStorePassword("trustStorePassword");
        ssl.setTrustStoreType("PCKS12");

        Properties properties = new Properties(prefix);
        HTTPRequestInfo info1 = populate(uri, proxyHost, proxyPort, proxyUser,
                                         proxyPassword, ssl);
        info1.export(properties);
        HTTPRequestInfo info2 = new HTTPRequestInfo(new URI(uri), properties);
        assertEquals(info1, info2);
View Full Code Here

Examples of org.exoplatform.portal.config.model.Properties

     * @see org.exoplatform.portal.config.model.Application
     * @see org.exoplatform.portal.config.model.Properties
     */
    public Properties getProperties() {
        if (properties_ == null)
            properties_ = new Properties();
        return properties_;
    }
View Full Code Here

Examples of org.fedorahosted.openprops.Properties

        }
        return sb.toString();
    }

    public static String listToHeader(List<HeaderEntry> entries) {
        Properties props = new Properties();
        for (HeaderEntry entry : entries) {
            props.setProperty(entry.getKey(), entry.getValue());
        }
        return propertiesToHeader(props);
    }
View Full Code Here

Examples of org.jberet.job.Properties

            }
        }
    }

    private void doInjection(final Object obj, Class<?> cls, final ClassLoader classLoader, final Map<?, ?> data) throws Exception {
        Properties batchProps = (Properties) data.get(DataKey.BATCH_PROPERTY);
        boolean hasBatchProps = batchProps != null && batchProps.getProperty().size() > 0;
        while (cls != null && cls != Object.class && !cls.getPackage().getName().startsWith("javax.batch")) {
            for (Field f : cls.getDeclaredFields()) {
                if (!f.isSynthetic()) {
                    Object fieldVal = null;
                    if (f.getAnnotation(Inject.class) != null) {
View Full Code Here

Examples of org.jberet.job.model.Properties

        Field field = (Field) injectionPoint.getMember();

        if (propName.length() == 0) {
            propName = field.getName();
        }
        final Properties properties = ArtifactCreationContext.getCurrentArtifactCreationContext().properties;
        if (properties != null) {
            String rawVal = properties.get(propName);
            if (rawVal == null || rawVal.isEmpty()) {
                return null;
            }
            Class<?> fieldType = field.getType();
            return fieldType.isAssignableFrom(String.class) ? (T) rawVal :
View Full Code Here

Examples of org.jboss.arquillian.prototyping.context.api.Properties

            final Class<?> type = field.getType();

            // If Properties are defined
            if (field.isAnnotationPresent(Properties.class))
            {
               final Properties properties = field.getAnnotation(Properties.class);
               resolvedVaue = arquillianContext.get(type, properties);
            }
            // If just one property is defined
            else if (field.isAnnotationPresent(Property.class))
            {
               final Property property = field.getAnnotation(Property.class);
               final Properties properties = new PropertiesImpl(new Property[]
               {property});
               resolvedVaue = arquillianContext.get(type, properties);
            }
            // No properties defined; do type-based resolution only
            else
View Full Code Here

Examples of org.jboss.soa.esb.message.Properties

            messageTL.set(message);

            RequestHandler requestHandler = endpoint.getRequestHandler();

            final Map<String, List<String>> headers = new HashMap<String, List<String>>() ;
            final Properties properties = message.getProperties() ;
            final String[] names = properties.getNames() ;
            for(final String name: names)
            {
                final Object value = properties.getProperty(name) ;
                if (value != null)
                {
                    String normalisedName = name.toLowerCase() ;

                    if ("content-type".equals(normalisedName))
                    {
                        if ("application/octet-stream".equals(value))
                        {
                            continue;
                        }
                        else
                        {
                            // CXF needs it to be case sensitive
                            normalisedName = "Content-Type";
                        }
                    }

                    final List<String> values = headers.get(normalisedName) ;
                    if (values == null)
                    {
                        final List<String> newValues = new ArrayList<String>() ;
                        newValues.add(value.toString()) ;
                        headers.put(normalisedName, newValues) ;
                    }
                    else
                    {
                        values.add(value.toString()) ;
                    }
                }
            }

            //CXF throws NPE in handler if content-length not set
            List<String> newValues = new ArrayList<String>();
            newValues.add(String.valueOf(soapMessage.length));
            headers.put("content-length", newValues);

            final String endpointAddress = endpoint.getAddress() ;
            String path = null ;
            if (endpointAddress != null)
            {
                try
                {
                    path = new URI(endpointAddress).getPath() ;
                }
                catch (final URISyntaxException urise) {} //ignore
            }
            if (path == null)
            {
                path = getHeaderValue(headers, "path") ;
            }

            final SOAPProcessorHttpServletRequest servletRequest = new SOAPProcessorHttpServletRequest(path, soapMessage, headers) ;
            final SOAPProcessorHttpServletResponse servletResponse = new SOAPProcessorHttpServletResponse() ;
            final ServletContext servletContext = SOAPProcessorFactory.getFactory().createServletContext(endpoint) ;

            EndpointAssociation.setEndpoint(endpoint);
            final ClassLoader old = Thread.currentThread().getContextClassLoader();
            try
            {
                initialiseContextClassLoader(endpoint);
                requestHandler.handleHttpRequest(endpoint, servletRequest, servletResponse, servletContext) ;
            }
            finally
            {
                Thread.currentThread().setContextClassLoader(old);
                EndpointAssociation.removeEndpoint();
            }
           
            // This may have been changed, make sure we get the current version.
            message = messageTL.get();
            final Properties responseProperties = message.getProperties() ;
            final String contentType = servletResponse.getContentType() ;
            final Map<String, List<String>> responseHeaders = servletResponse.getHeaders() ;
            // We deal with Content-Type below
            // HTTP Headers *should* be case-insensitive but not with JBR
            responseHeaders.remove("content-type") ;
          
            for(Map.Entry<String, List<String>> header: responseHeaders.entrySet())
            {
                // We can only deal with the first value in the list.
              // JBESB-2511
              new ResponseHeader(header.getKey(), header.getValue().get(0)).setPropertyNameThis(properties);
            }
            // JBESB-2761
            if (httpResponseStatusEnabled) {
              ResponseStatus.setHttpProperties(properties, servletResponse.getStatus(), servletResponse.getStatusMessage());
            }
           
            final byte[] responseData = servletResponse.getContent() ;
            if(contentType != null) {
                responseProperties.setProperty("Content-Type", new ResponseHeader("Content-Type", contentType));
            } else {
                responseProperties.setProperty("Content-Type", new ResponseHeader("Content-Type", "text/xml"));
            }
           
            if ((contentType != null) && contentType.startsWith("multipart/")) {
                payloadProxy.setPayload(message, responseData) ;
            } else {
View Full Code Here

Examples of org.mizartools.dli.Properties

      LinkedList<PropertyEnum> propertyEnumList = new LinkedList<PropertyEnum>();
      for (org.mizartools.system.xml.AbstractProperty abstractProperty : properties.getAbstractPropertyList()){
        PropertyEnum propertyEnum = PropertyEnum.valueOf(abstractProperty.getPropertyName().toLowerCase());
        propertyEnumList.add(propertyEnum);
      }
    Properties propertiesDli = new Properties(propertyEnumList);
    return propertiesDli;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.