Package de.uniluebeck.itm.ncoap.application.server.webservice.linkformat

Examples of de.uniluebeck.itm.ncoap.application.server.webservice.linkformat.LinkAttribute


    }


    private CoapResponse processCoapGetRequest(CoapRequest coapRequest){
        try{
            LinkAttribute filterAttribute = createLinkAttributeFromQuery(coapRequest.getUriQuery());

            CoapResponse coapResponse = new CoapResponse(coapRequest.getMessageTypeName(),
                    MessageCode.Name.CONTENT_205);

            byte[] content = getSerializedResourceStatus(filterAttribute);
View Full Code Here


            String[] param = queryParameter.split("=");

            if(param.length != 2)
                throw new IllegalArgumentException("Could not parse query " + queryParameter);

            LinkAttribute linkAttribute;
            int attributeType = LinkAttribute.getAttributeType(param[0]);

            if(attributeType == LinkAttribute.STRING_ATTRIBUTE)
                linkAttribute = new StringLinkAttribute(param[0], param[1]);
View Full Code Here

TOP

Related Classes of de.uniluebeck.itm.ncoap.application.server.webservice.linkformat.LinkAttribute

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.