Examples of prefix()


Examples of org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace.prefix()

       
        final XmlNamespace xmlNamespaceAnnotation = this.type.getAnnotation( XmlNamespace.class );
       
        if( xmlNamespaceAnnotation != null )
        {
            if( xmlNamespaceAnnotation.prefix().equals( prefix ) )
            {
                return xmlNamespaceAnnotation.uri();
            }
        }
View Full Code Here

Examples of org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsConfig.prefix()

     */
    @Test
    public void jsessionIdCookieTestBasic() throws Exception {
        final SockJsConfig config = SockJsConfig.withPrefix("/cookie_needed_echo").cookiesNeeded().build();
        SockJsServiceFactory serviceFactory = echoService(config);
        final FullHttpResponse response = infoRequest(config.prefix(), serviceFactory);
        assertThat(response.getStatus(), is(HttpResponseStatus.OK));
        verifyNoSET_COOKIE(response);
        assertThat(infoAsJson(response).get("cookie_needed").asBoolean(), is(true));
    }

View Full Code Here

Examples of org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsConfig.prefix()

    }

    private static void verifyIframe(final String service, final String path) {
        final SockJsConfig config = SockJsConfig.withPrefix(service).cookiesNeeded().build();
        final EmbeddedChannel ch = channelForMockService(config);
        ch.writeInbound(httpRequest(config.prefix() + path));
        final FullHttpResponse response = ch.readOutbound();
        assertThat(response.getStatus().code(), is(HttpResponseStatus.OK.code()));
        assertThat(response.headers().get(CONTENT_TYPE), equalTo("text/html; charset=UTF-8"));
        assertThat(response.headers().get(CACHE_CONTROL), equalTo("max-age=31536000, public"));
        assertThat(response.headers().get(EXPIRES), is(notNullValue()));
View Full Code Here

Examples of org.jboss.managed.api.annotation.ManagementObjectID.prefix()

               {
                  log.warn("Cannot create String name from non-Simple property: " + property + ", value=" + value);
                  continue;
               }
               SimpleValue svalue = (SimpleValue) value;
               String name = id.prefix() + svalue.getValue() + id.suffix();
               log.debug("Created name: "+name+" from property: "+property.getName());
               managedObject.setName(name);
            }
            ManagementRuntimeRef runtimeRef = getAnnotation(ManagementRuntimeRef.class, annotations, metaData);
            if (runtimeRef != null)
View Full Code Here

Examples of org.jboss.resteasy.annotations.Form.prefix()

      {
         return new PathParamInjector(type, genericType, injectTarget, uriParam.value(), defaultVal, encode, annotations, providerFactory);
      }
      else if ((form = findAnnotation(annotations, Form.class)) != null)
      {
         String prefix = form.prefix();
         if (prefix.length() > 0)
         {
            if (genericType instanceof ParameterizedType)
            {
               ParameterizedType pType = (ParameterizedType) genericType;
View Full Code Here

Examples of org.jboss.resteasy.annotations.providers.jaxb.Wrapped.prefix()

         Wrapped wrapped = FindAnnotation.findAnnotation(annotations, Wrapped.class);
         if (wrapped != null)
         {
            element = wrapped.element();
            namespaceURI = wrapped.namespace();
            prefix = wrapped.prefix();
         }


         JAXBElement<JaxbCollection> collection = new JAXBElement<JaxbCollection>(new QName(namespaceURI, element, prefix), JaxbCollection.class, col);
         Marshaller marshaller = ctx.createMarshaller();
View Full Code Here

Examples of org.jboss.resteasy.annotations.providers.jaxb.WrappedMap.prefix()

         if (wrapped != null)
         {
            mapName = wrapped.map();
            entryName = wrapped.entry();
            namespaceURI = wrapped.namespace();
            prefix = wrapped.prefix();
            keyName = wrapped.key();
         }

         JaxbMap map = new JaxbMap(entryName, keyName, namespaceURI);
View Full Code Here

Examples of org.jboss.seam.annotations.Namespace.prefix()

   {
     if (pkg != null) {
       Namespace ns = pkg.getAnnotation(Namespace.class);
       if (ns != null) {
         log.info("Namespace: " + ns.value() + ", package: " + pkg.getName() +
             ", prefix: " + ns.prefix());

         NamespaceDescriptor descriptor = namespaceMap.get(ns.value());
         if (descriptor != null)
         {
            descriptor.addPackageName(pkg.getName());
View Full Code Here

Examples of org.jboss.seam.annotations.Namespace.prefix()

   {
     if (pkg != null) {
       Namespace ns = pkg.getAnnotation(Namespace.class);
       if (ns != null) {
         log.info("Namespace: " + ns.value() + ", package: " + pkg.getName() +
             ", prefix: " + ns.prefix());

         NamespaceDescriptor descriptor = namespaceMap.get(ns.value());
         if (descriptor != null)
         {
            descriptor.addPackageName(pkg.getName());
View Full Code Here

Examples of org.jboss.seam.annotations.Namespace.prefix()

   {
     if (pkg != null) {
       Namespace ns = pkg.getAnnotation(Namespace.class);
       if (ns != null) {
         log.debug("Namespace: " + ns.value() + ", package: " + pkg.getName() +
             ", prefix: " + ns.prefix());

         NamespaceDescriptor descriptor = namespaceMap.get(ns.value());
         if (descriptor != null)
         {
            descriptor.addPackageName(pkg.getName());
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.