Package net.windwards.dnsfrontend.dialog

Examples of net.windwards.dnsfrontend.dialog.Request


                    received = protocol.decode(message.getBuffer());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
                if(received instanceof Request) {
                    Request request = (Request) received;
                    log("Received request [sender=" + message.getSrc() + ", message=" + request + "]");
                    recipient.receive(request);
                }
            }
        };
View Full Code Here


public class JSONBackendProtocol extends JSONProtocol implements Protocol {

    @Override
    public byte[] encode(Record record, Configuration configuration)
            throws ProtocolCodingException, NoSuchDomainException {
        Request request = new Request();
        request.name = record.getName().getLabelString(0);
        request.moniker = configuration.monikerFromName(new Name(record.getName(), 1));

        try {
            return this.mapper.writeValueAsBytes(request);
View Full Code Here

TOP

Related Classes of net.windwards.dnsfrontend.dialog.Request

Copyright © 2018 www.massapicom. 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.