Examples of readValue()


Examples of org.restlet.engine.header.CookieSettingReader.readValue()

     * @throws IOException
     */
    private void testCookieSetting(String headerValue, boolean compare)
            throws IOException {
        CookieSettingReader cr = new CookieSettingReader(headerValue);
        CookieSetting cookie = cr.readValue();

        // Rewrite the header
        String newHeaderValue = CookieSettingWriter.write(cookie);

        // Compare initial and new headers
View Full Code Here

Examples of org.restlet.engine.header.ParameterReader.readValue()

            String nextNonce = null;
            String qop = null;
            String responseAuth = null;
            String cnonce = null;
            int nonceCount = 0;
            Parameter param = hr.readValue();

            while (param != null) {
                try {
                    if ("nextnonce".equals(param.getName())) {
                        nextNonce = param.getValue();
View Full Code Here

Examples of org.restlet.ext.sip.internal.AddressReader.readValue()

    @Test
    public void testParsing() throws Exception {
        String str = "Anonymous <sip:c8oqz84zk7z@privacy.org>;tag=hyh8";
        AddressReader r = new AddressReader(str);
        Address a = r.readValue();

        assertEquals("Anonymous", a.getDisplayName());
        assertEquals("sip:c8oqz84zk7z@privacy.org", a.getReference().toString());
        assertEquals(1, a.getParameters().size());
        Parameter parameter = a.getParameters().get(0);
View Full Code Here

Examples of org.restlet.ext.sip.internal.AvailabilityReader.readValue()

    @Test
    public void testParsing() throws Exception {
        String str = "18000;duration=3600;tag=hyh8";
        AvailabilityReader r = new AvailabilityReader(str);
        Availability a = r.readValue();

        assertEquals(18000, a.getDelay());
        assertEquals(3600, a.getDuration());
        assertNull(a.getComment());
        assertEquals(1, a.getParameters().size());
View Full Code Here

Examples of org.restlet.ext.sip.internal.EventTypeReader.readValue()

    @Test
    public void testParsing() throws Exception {
        String str = "presence";

        EventTypeReader r = new EventTypeReader(str);
        EventType e = r.readValue();
        assertEquals("presence", e.getPackage());
        assertTrue(e.getEventTemplates().isEmpty());

        str = "presence.template1.template2 ";
        r = new EventTypeReader(str);
View Full Code Here

Examples of org.restlet.ext.sip.internal.SipRecipientInfoReader.readValue()

    @Test
    public void testParsing() throws Exception {
        String str = "SIP/2.0/UDP 192.0.2.1:5060 ;received=192.0.2.207;branch=z9hG4bK77asjd";
        SipRecipientInfoReader r = new SipRecipientInfoReader(str);
        SipRecipientInfo s = r.readValue();

        assertEquals(Protocol.SIP, s.getProtocol());
        assertEquals("UDP", s.getTransport());
        assertEquals("192.0.2.1:5060", s.getName());
View Full Code Here

Examples of ve.net.dcs.sc.component.ScaleConnector.readValue()

    sc.setStabilityValuePosition(sIndicatorPos);
    sc.setStabilityValue(sIndicator);
    sc.setFloatingPoint(fPoint);

    try {
      System.out.println("Value: " + sc.readValue());
    } catch (SerialPortTimeoutException e) {
      logger.severe("Finish timeout");
      e.printStackTrace();
    } catch (Exception e) {
      logger.severe("Error reading serial port");
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.