Examples of writeHeaders()


Examples of javax.xml.ws.addressing.soap.SOAPAddressingProperties.writeHeaders()

    catch (URISyntaxException e)
    {
      log.error("Error setting response action", e);
    }

    outProps.writeHeaders(soapMessage);
  }

  /* check wsa formal constraints */
  private void validateRequest(SOAPAddressingProperties addrProps)
  {
View Full Code Here

Examples of javax.xml.ws.addressing.soap.SOAPAddressingProperties.writeHeaders()

            // ignore
         }
      }
     
    SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
    addrProps.writeHeaders(soapMessage);

    return true;
  }

  protected boolean handleInbound(MessageContext msgContext)
View Full Code Here

Examples of org.geotools.data.shapefile.shp.ShapefileWriter.writeHeaders()

        FileChannel shxChannel = shxStoragefile.getWriteChannel();

        ShapefileWriter writer = new ShapefileWriter(shpChannel, shxChannel);
        try {
            // by spec, if the file is empty, the shape envelope should be ignored
            writer.writeHeaders(new Envelope(), shapeType, 0, 100);
        } finally {
            writer.close();
            assert !shpChannel.isOpen();
            assert !shxChannel.isOpen();
        }
View Full Code Here

Examples of org.springframework.security.web.header.writers.StaticHeadersWriter.writeHeaders()

    public void sameHeaderShouldBeReturned() {
        String headerName = "X-header";
        String headerValue = "foo";
        StaticHeadersWriter factory = new StaticHeadersWriter(headerName, headerValue);

        factory.writeHeaders(request, response);
        assertThat(response.getHeaderValues(headerName)).isEqualTo(Arrays.asList(headerValue));
    }

    @Test
    public void writeHeadersMulti() {
View Full Code Here

Examples of org.springframework.security.web.header.writers.StaticHeadersWriter.writeHeaders()

    public void writeHeadersMulti() {
        Header pragma = new Header("Pragma","no-cache");
        Header cacheControl= new Header("Cache-Control","no-cache","no-store","must-revalidate");
        StaticHeadersWriter factory = new StaticHeadersWriter(Arrays.asList(pragma, cacheControl));

        factory.writeHeaders(request, response);

        assertThat(response.getHeaderNames().size()).isEqualTo(2);
        assertThat(response.getHeaderValues(pragma.getName())).isEqualTo(pragma.getValues());
        assertThat(response.getHeaderValues(cacheControl.getName())).isEqualTo(cacheControl.getValues());
    }
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.