Return the application object encoded by the tag.
341136
def app_to_object(self):
        """"""
        if self.tagClass != Tag.applicationTagClass:
            raise ValueError("application tag required")

        # get the class to build
        klass = self._app_tag_class[self.tagNumber]
        if not klass:
            return None

        # build an object, tell it to decode this tag, and return it
        return klass(self)
1162946
def application_uri(self):
        """"""
        if self._application_uri is None:
            self._application_uri = application_uri(self.environ)
        return self._application_uri
1196390
def MacApplication(self, data=None, subset=None):
        """"""
        return self.factory.get_object(jssobjects.MacApplication, data, subset)
481737
def set_app_data(self, tnum, tdata):
        """"""
        if not isinstance(tdata, str):
            raise TypeError("tag data must be str")

        self.tagClass = Tag.applicationTagClass
        self.tagNumber = tnum
        self.tagLVT = len(tdata)
        self.tagData = tdata
610756
def data(self):
        
        if self.request.method == 'GET':
            return self.request.GET
        else:
            assert self.request.META['CONTENT_TYPE'].startswith('application/json')
            charset = self.request.encoding or settings.DEFAULT_CHARSET
            return json.loads(self.request.body.decode(charset))
44200
def get_content_type(*names):
    """"""
    for name in names:
        if name is not None:
            mimetype, encoding = mimetypes.guess_type(name)
            if mimetype is not None:
                if isinstance(mimetype, bytes):
                    return mimetype.decode("ascii")
                else:
                    return mimetype
    else:
        return "application/octet-stream"
1180002
def get_app_ext(self, loops=float('inf')):
        

        if loops == 0 or loops == float('inf'):
            loops = 2**16 - 1
            # bb = ""  # application extension should not be used (the extension interprets zero loops to mean an infinite number of loops) Mmm, does not seem to work
        if True:
            bb = "\x21\xFF\x0B"  # application extension
            bb += "NETSCAPE2.0"
            bb += "\x03\x01"
            bb += int_to_bin(loops)
            bb += '\x00'  # end
        return bb
281922
function baseGetTag(value) {
  if (value == null) {
    return value === undefined ? undefinedTag : nullTag;
  }
  return (symToStringTag && symToStringTag in Object(value))
    ? _getRawTag(value)
    : _objectToString(value);
}
739926
byte[] getTag() {
        return getCipherMode() != Cipher.ENCRYPT_MODE || finalBytes == null
             ? null
             : Arrays.copyOfRange(finalBytes,
                 finalBytes.length - tagLen, finalBytes.length)
             ;
    }
703375
def _get_requested_spec(self, obj, spec_name):
        """"""
        requested = self._specs_in[spec_name]
        if isinstance(requested, str):
            return _get_attr_by_tag(obj, requested, spec_name)
        else:
            return requested
837076
def decode(self, pdu):
        """"""
        while pdu.pduData:
            self.tagList.append( Tag(pdu) )
592239
def getAppExt(self, loops=float('inf')):
        

        if loops == 0 or loops == float('inf'):
            loops = 2 ** 16 - 1
            # bb = "" application extension should not be used
            #         (the extension interprets zero loops
            #          to mean an infinite number of loops)
            #         Mmm, does not seem to work
        if True:
            bb = "\x21\xFF\x0B"  # application extension
            bb += "NETSCAPE2.0"
            bb += "\x03\x01"
            bb += intToBin(loops)
            bb += '\x00'  # end
        return bb
929711
def get_tag_json(self, namespace, repository, tag):
        """"""
        return self._http_call(self.TAGS + '/' + tag + '/json', get,
                               namespace=namespace, repository=repository)
209694
def get_tagged(self, event):
        """"""
        self.log("Tagged objects request for", event.data, "from",
                 event.user, lvl=debug)
        if event.data in self.tags:
            tagged = self._get_tagged(event.data)

            response = {
                'component': 'hfos.events.schemamanager',
                'action': 'get',
                'data': tagged
            }
            self.fireEvent(send(event.client.uuid, response))
        else:
            self.log("Unavailable schema requested!", lvl=warn)
1233570
def tagMap(self):
        "
        if self.tagSet:
            return Set.tagMap.fget(self)
        else:
            return self.componentType.tagMapUnique
1359898
def _get_app(self, appname):
        
        try:
            app = APPS.get_app_config(appname)
        except Exception as e:
            self.err(e)
            return
        return app
139322
def get_tag(self, tag_name, **kwargs):
        
        return self._get_object_by_name(self._TAG_ENDPOINT_SUFFIX,
                                        tag_name,
                                        **kwargs)