Article for g_uri,g_request

animesh_deshpan
Mega Contributor

Hi ,

I was unable to find any relevant information for 'g_uri','g_request' objects .

Also I needed some more in depth info for 'Navigation Handler' .

Please let me know if there are existing articles for the same , If somehow I might have overlooked.

Please let me know for additional sources which will help me understand .

Thanks in advance for your help.

Animesh

7 REPLIES 7

Aaron40
Kilo Guru

I've only ever seen g_uri used once and I just looked through the wiki and can't find about it. Maybe this should be posted under the Documentation section so ServiceNow knows we'd like some documetnation around it.

The one time I've seen it it was in use on a knowledge form. It looked like g_uri might by the URL of the current form.


jbutz
Kilo Expert

I'm also looking for Navigation Handler and g_uri information. Have you managed to find anything?



Update:



I can't find any documentation, but using a for loop I got the methods they contain.



g_uri.action()


g_uri.addIgnoreParam()


g_uri.class()


g_uri.deleteMatchingParameter()


g_uri.deleteParmameter()


g_uri.equals()


g_uri.fileFromPath()


g_uri.get()


g_uri.getAction()


g_uri.getClass()


g_uri.getFileFromPath()


g_uri.getMap()


g_uri.getPath()


g_uri.hashCode()


g_uri.isSetAsDefault()


g_uri.map()


g_uri.notify()


g_uri.notifyAll()


g_uri.path()


g_uri.set()


g_uri.setAbsoluteURI()


g_uri.setAction()


g_uri.setAsDefault()


g_uri.setFilter()


g_uri.setParameter()


g_uri.setRelatedQuery()


g_uri.toString()


g_uri.wait()




g_request.asyncStarted()


g_request.asyncSupported()


g_request.authType()


g_request.contentLength()


g_request.contextPath()


g_request.cookies()


g_request.dispatcherType()


g_request.equals()


g_request.getAsyncContext()


g_request.getAttribute()


g_request.getAttributeNames()


g_request.getAuthType()


g_request.getCharacterEncoding()


g_request.getContentLength()


g_request.getContentType()


g_request.getCookies()


g_request.getDispatcherType()


g_request.getHeader()


g_request.getHeaderNames()


g_request.getInputStream()


g_request.getIntHeader()


g_request.getLocalAddr()


g_request.getLocale()


g_request.getLocales()


g_request.getLocalName()


g_request.getMethod()


g_request.getOriginalParameterMap()


g_request.getParameterMap()


g_request.getParameterNames()


g_request.getParameterValues()


g_request.getPart()


g_request.getParts()


g_request.getPathInfo()


g_request.getPathTranslated()


g_request.getProtocol()


g_request.getRealPath()


g_request.getRemoteAddr()


g_request.getRemoteUser()


g_request.getRequestDispatcher()


g_request.getRequestedSessionId()


g_request.getRequestURI()


g_request.getRequestURL()


g_request.getScheme()


g_request.getServletPath()


g_request.getSession()


g_request.getSiteID()


g_request.getSiteName()


g_request.getUserPrincipal()


g_request.headerNames()


g_request.inputStream()


g_request.isAsyncStarted()


g_request.isAsyncSupported()


g_request.isPublic()


g_request.isRequestedSessionIdFromCookie()


g_request.isRequestedSessionIdFromUrl()


g_request.isRequestedSessionIdFromURL()


g_request.isRequestedSessionIdValid()


g_request.isSecure()


g_request.isVirtual()


g_request.localAddr()


g_request.locale()


g_request.locales()


g_request.login()


g_request.logout()


g_request.method()


g_request.notify()


g_request.notifyAll()


g_request.originalParameterMap()


g_request.parameterMap()


g_request.parameterNames()


g_request.parts()


g_request.pathInfo()


g_request.pathTranslated()


g_request.protocol()


g_request.queryString()


g_request.reader()


g_request.remoteAddr()


g_request.remoteHost()


g_request.remotePort()


g_request.removeAttribute()


g_request.requestedSessionId()


g_request.requestedSessionIdFromCookie()


g_request.requestedSessionIdFromURL()


g_request.requestedSessionIdValid()


g_request.requestURI()


g_request.requestURL()


g_request.scheme()


g_request.secure()


g_request.serverPort()


g_request.servletPath()


g_request.setAttribute()


g_request.setCharacterEncoding()


g_request.setParameter()


g_request.siteID()


g_request.startAsync()


g_request.toString()


g_request.updateSessionLastAccessedTime()


g_request.userPrincipal()


g_request.virtual()


g_request.wait()


Can you post your script to find all the methods?   I've wanted to know that.


Of course, here it is:



for(m in g_uri)


{


        gs.log('g_uri.' + m,'g_uri');


}



Just include this in your navigation handler and then pull up the logs and set the source to "g_uri". To do it for g_request just replace g_uri.