Examples of attr()


Examples of com.ociweb.xml.WAX.attr()

        wax.xslt("artist.xslt");
        wax.dtd("http://www.ociweb.com/xml/music.dtd");

        wax.start("artist");
        wax.attr("name", "Gardot, Melody");
        wax.defaultNamespace("http://www.ociweb.com/music",
            "http://www.ociweb.com/xml/music.xsd");
        wax.namespace("date", "http://www.ociweb.com/date",
            "http://www.ociweb.com/xml/date.xsd");
View Full Code Here

Examples of cpw.mods.fml.common.network.FMLEmbeddedChannel.attr()

        {
            addClientHandlers();
        }

        FMLEmbeddedChannel serverChannel = channelPair.get(Side.SERVER);
        serverChannel.attr(FMLOutboundHandler.FML_MESSAGETARGET).set(OutboundTarget.NOWHERE);
        String handlerName = serverChannel.findChannelHandlerNameForType(ForgeRuntimeCodec.class);
        serverChannel.pipeline().addAfter(handlerName, "ServerToClientConnection", new ServerToClientConnectionEstablishedHandler());
    }

    @SideOnly(Side.CLIENT)
View Full Code Here

Examples of io.netty.channel.Channel.attr()

                  // Get 16 bit nonce and base 64 encode it
                  byte[] nonce = randomBytes(16);
                  String key = base64(nonce);
                  request.headers().set(SEC_HORNETQ_REMOTING_KEY, key);
                  ch.attr(REMOTING_KEY).set(key);

                  HornetQClientLogger.LOGGER.debugf("Sending HTTP request %s", request);

                  // Send the HTTP request.
                  ch.writeAndFlush(request);
View Full Code Here

Examples of io.netty.channel.ChannelHandlerContext.attr()

    when(ctx.channel()).thenReturn(dc);
    when(ctx.writeAndFlush(any(), any(ChannelPromise.class))).thenReturn(
        null);

    Attribute<InetSocketAddress> attr = mock(Attribute.class);
    when(ctx.attr(any(AttributeKey.class))).thenReturn(attr);

    when(ctx.fireChannelRead(any())).then(new Answer<Void>() {
      @Override
      public Void answer(final InvocationOnMock invocation)
          throws Throwable {
View Full Code Here

Examples of io.netty.channel.embedded.EmbeddedChannel.attr()

    @Test
    public void verifyChannelAttributesNotPreflightRequestDefaults() {
        final FullHttpRequest httpRequest = createHttpRequest(HttpMethod.GET);
        final EmbeddedChannel channel = new EmbeddedChannel(new CorsInboundHandler());
        channel.writeInbound(httpRequest);
        final CorsMetadata corsMetadata = channel.attr(CorsInboundHandler.CORS).get();
        assertThat(corsMetadata.origin(), is("*"));
        assertThat(corsMetadata.hasHeaders(), is(false));
        assertThat((FullHttpRequest) channel.readInbound(), equalTo(httpRequest));
        channel.finish();
    }
View Full Code Here

Examples of io.netty.util.AttributeMap.attr()

    public void testNewRequestId() throws Exception {
        RequestIdProvider provider = new HttpRequestIdProvider("request_id", CORRELATOR);
        ContextKeySupplier keySupplier = new MapBackedKeySupplier(new HashMap<String, String>());
        AttributeMap attributeMap = new DefaultAttributeMap();
        String requestId = provider.newRequestId(keySupplier, attributeMap);
        ConcurrentLinkedQueue<String> ids = attributeMap.attr(HttpRequestIdProvider.REQUEST_IDS_KEY).get();
        Assert.assertNotNull("Request Id not added to context.", ids);
        Assert.assertNotNull("Request Id not added to context.", ids.peek());
        Assert.assertSame("Unexpected request Id in the context.", requestId, ids.poll());
    }
View Full Code Here

Examples of io.netty.util.DefaultAttributeMap.attr()

    public void testNewRequestId() throws Exception {
        RequestIdProvider provider = new HttpRequestIdProvider("request_id", CORRELATOR);
        ContextKeySupplier keySupplier = new MapBackedKeySupplier(new HashMap<String, String>());
        AttributeMap attributeMap = new DefaultAttributeMap();
        String requestId = provider.newRequestId(keySupplier, attributeMap);
        ConcurrentLinkedQueue<String> ids = attributeMap.attr(HttpRequestIdProvider.REQUEST_IDS_KEY).get();
        Assert.assertNotNull("Request Id not added to context.", ids);
        Assert.assertNotNull("Request Id not added to context.", ids.peek());
        Assert.assertSame("Unexpected request Id in the context.", requestId, ids.poll());
    }
View Full Code Here

Examples of org.eaxy.Element.attr()

            if (1 != vertexWeightsSet.size()) {
                throw new ColladaParseException("Found " + vertexWeightsSet.size() + " vertex weights sets for controller id=" + controller.id() + " name="
                                                + controller.name());
            }
            Element vertexWeights = vertexWeightsSet.first();
            String vertexWeightsCountString = vertexWeights.attr("count");
            int vertexWeightsCount = Integer.parseInt(vertexWeightsCountString);

            String[] jointNameArray = null;
            float[] inverseBindMatrixArray;
            Quat4f[] rotationArray;
View Full Code Here

Examples of org.jacoco.report.html.HTMLElement.attr()

      final List<? extends ITableItem> items, final ICoverageNode total,
      final Resources resources, final ReportOutputFolder base)
      throws IOException {
    final List<? extends ITableItem> sortedItems = sort(items);
    final HTMLElement table = parent.table(Styles.COVERAGETABLE);
    table.attr("id", "coveragetable");
    header(table, sortedItems, total, resources, base);
    footer(table, total, resources, base);
    body(table, sortedItems, resources, base);
  }
View Full Code Here

Examples of org.jacoco.report.internal.html.HTMLDocument.attr()

   * @throws IOException
   */
  public void render() throws IOException {
    final HTMLDocument doc = new HTMLDocument(
        folder.createFile(getFileName()), context.getOutputEncoding());
    doc.attr("lang", context.getLocale().getLanguage());
    head(doc.head());
    body(doc.body());
    doc.close();
  }

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.