void function ( ResponseCode arg0 , String arg1 ) { Response loc0 = new Response ( arg0 ) ; loc0 . setPayload ( arg1 ) ; loc0 . getOptions ( ) . setContentFormat ( MediaTypeRegistry . TEXT_PLAIN ) ; respond ( loc0 ) ; }
respond with the specified response code and the specified payload . get : content 2.05 , valid 2.03 post : created 2.01 , changed 2.04 , deleted 2.02 put : created 2.01 , changed 2.04 delete : deleted 2.02 concode_field_sep String locationQuery concode_elem_sep CoapResource resource concode_elem_sep String locationPath concode_elem_sep Exchange exchange concode_elem_sep long maxAge concode_elem_sep byte[] eTag concode_field_sep byte[] getRequestPayload concode_elem_sep String getRequestText concode_elem_sep Exchange advanced concode_elem_sep void setMaxAge concode_elem_sep void setLocationQuery concode_elem_sep int getSourcePort concode_elem_sep void accept concode_elem_sep void reject concode_elem_sep InetAddress getSourceAddress concode_elem_sep void setLocationPath concode_elem_sep Code getRequestCode concode_elem_sep OptionSet getRequestOptions concode_elem_sep void setETag