glideservlet

GlideServlet aka Processors

GlideScriptedProcessor

Property/MethodDescription
redirectRedirects to the specified URL
writeOutputWrites the contents of the given string to the response
writeJSONWrites a JSON object to the current URL. Note: Works only in scoped apps

GlideServletRequest

Property/MethodDescription
getHeadersReturns an array of headers as a string
getHeaderNamesReturns an array of header names as a string
getQueryStringReturns the query string from the request
getContentTypeReturns the content type
getParameterNamesReturns an array of parameter names as a string
getHeaderReturns the header
getParameterReturns an object

GlideServletResponse

Property/MethodDescription
setContentTypeSets the MIME type of the response
sendRedirectSends a temporary redirect to the client
setStatusSets the status code for the response
setHeaderSets a response header to the specified value