docstring_tokens
list
code_tokens
list
[ "<", "p", ">", "whether", "to", "install", "operating", "system", "and", "package", "updates", "when", "the", "instance", "boots", "the", "default", "value", "is", "<", "code", ">", "true", "<", "/", "code", ">", "if", "this", "value", "is", "set", "to...
[ "this", "install", "updates", "on", "boot", "=", "install", "updates", "on", "boot", ";" ]
[ "<", "p", ">", "whether", "to", "install", "operating", "system", "and", "package", "updates", "when", "the", "instance", "boots", "the", "default", "value", "is", "<", "code", ">", "true", "<", "/", "code", ">", "if", "this", "value", "is", "set", "to...
[ "return", "this", "install", "updates", "on", "boot", ";" ]
[ "<", "p", ">", "whether", "to", "install", "operating", "system", "and", "package", "updates", "when", "the", "instance", "boots", "the", "default", "value", "is", "<", "code", ">", "true", "<", "/", "code", ">", "to", "control", "when", "updates", "are"...
[ "set", "install", "updates", "on", "boot", "(", "install", "updates", "on", "boot", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "whether", "to", "install", "operating", "system", "and", "package", "updates", "when", "the", "instance", "boots", "the", "default", "value", "is", "<", "code", ">", "true", "<", "/", "code", ">", "if", "this", "value", "is", "set", "to...
[ "return", "this", "install", "updates", "on", "boot", ";" ]
[ "<", "p", ">", "whether", "the", "layer", "uses", "amazon", "ebs", "-", "optimized", "instances", "<", "/", "p", ">" ]
[ "this", "use", "ebs", "optimized", "instances", "=", "use", "ebs", "optimized", "instances", ";" ]
[ "<", "p", ">", "whether", "the", "layer", "uses", "amazon", "ebs", "-", "optimized", "instances", "<", "/", "p", ">" ]
[ "return", "this", "use", "ebs", "optimized", "instances", ";" ]
[ "<", "p", ">", "whether", "to", "use", "amazon", "ebs", "-", "optimized", "instances", "<", "/", "p", ">" ]
[ "set", "use", "ebs", "optimized", "instances", "(", "use", "ebs", "optimized", "instances", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "whether", "the", "layer", "uses", "amazon", "ebs", "-", "optimized", "instances", "<", "/", "p", ">" ]
[ "return", "this", "use", "ebs", "optimized", "instances", ";" ]
[ "<", "p", ">", "a", "<", "code", ">", "life", "cycle", "event", "configuration", "<", "/", "code", ">", "object", "that", "specifies", "the", "shutdown", "event", "configuration", "<", "/", "p", ">" ]
[ "this", "lifecycle", "event", "configuration", "=", "lifecycle", "event", "configuration", ";" ]
[ "<", "p", ">", "a", "<", "code", ">", "life", "cycle", "event", "configuration", "<", "/", "code", ">", "object", "that", "specifies", "the", "shutdown", "event", "configuration", "<", "/", "p", ">" ]
[ "return", "this", "lifecycle", "event", "configuration", ";" ]
[ "<", "p", "/", ">" ]
[ "set", "lifecycle", "event", "configuration", "(", "lifecycle", "event", "configuration", ")", ";", "return", "this", ";" ]
[ "get", "annotations", "of", "content", "from", "intent" ]
[ "array", "list", "<", "string", ">", "annotations", "=", "intent", "get", "string", "array", "list", "extra", "(", "intent", "extra", "content", "annotations", ")", ";", "if", "(", "annotations", "!", "=", "null", ")", "{", "int", "size", "=", "annotatio...
[ "records", "metrics", "for", "evaluation" ]
[ "if", "(", "m", "ranker", "service", "name", "!", "=", "null", ")", "{", "metrics", "logger", "metrics", "logger", "=", "new", "metrics", "logger", "(", ")", ";", "log", "maker", "log", "=", "new", "log", "maker", "(", "metrics", "event", "action", "...
[ "adds", "select", "prob", "as", "the", "default", "values", "according", "to", "a", "pre", "-", "trained", "logistic", "regression", "model" ]
[ "float", "sum", "=", "2", "5", "5", "4", "3f", "*", "target", "get", "launch", "score", "(", ")", "+", "2", "8", "4", "1", "2f", "*", "target", "get", "time", "spent", "score", "(", ")", "+", "0", "2", "6", "9f", "*", "target", "get", "recenc...
[ "sets", "features", "for", "each", "target" ]
[ "target", "set", "recency", "score", "(", "recency", "score", ")", ";", "target", "set", "launch", "score", "(", "launch", "score", ")", ";", "target", "set", "time", "spent", "score", "(", "time", "spent", "score", ")", ";", "target", "set", "chooser", ...
[ "returns", "the", "value", "of", "the", "{" ]
[ "return", "nwidth", "(", "address", "(", ")", ")", ";" ]
[ "returns", "the", "value", "of", "the", "{" ]
[ "return", "nheight", "(", "address", "(", ")", ")", ";" ]
[ "sets", "the", "specified", "value", "to", "the", "{" ]
[ "nwidth", "(", "address", "(", ")", ",", "value", ")", ";", "return", "this", ";" ]
[ "sets", "the", "specified", "value", "to", "the", "{" ]
[ "nheight", "(", "address", "(", ")", ",", "value", ")", ";", "return", "this", ";" ]
[ "initializes", "this", "struct", "with", "the", "specified", "values" ]
[ "width", "(", "width", ")", ";", "height", "(", "height", ")", ";", "pixels", "(", "pixels", ")", ";", "return", "this", ";" ]
[ "copies", "the", "specified", "struct", "data", "to", "this", "struct" ]
[ "mem", "copy", "(", "src", "address", "(", ")", ",", "address", "(", ")", ",", "sizeof", ")", ";", "return", "this", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "wrap", "(", "g", "l", "f", "w", "image", "class", ",", "nmem", "alloc", "checked", "(", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "wrap", "(", "g", "l", "f", "w", "image", "class", ",", "nmem", "calloc", "checked", "(", "1", ",", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "byte", "buffer", "container", "=", "buffer", "utils", "create", "byte", "buffer", "(", "sizeof", ")", ";", "return", "wrap", "(", "g", "l", "f", "w", "image", "class", ",", "mem", "address", "(", "container", ")", ",", "container", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "wrap", "(", "g", "l", "f", "w", "image", "class", ",", "address", ")", ";" ]
[ "like", "{" ]
[ "return", "address", "=", "=", "null", "?", "null", ":", "wrap", "(", "g", "l", "f", "w", "image", "class", ",", "address", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "g", "l", "f", "w", "image", "buffer", "}", "instance", "allocated", "with", "{", "@", "link", "memory", "util", "#", "mem", "alloc", "mem", "alloc", "}", "the", "instance", "must", "be", "explicitly", "freed" ]
[ "return", "wrap", "(", "buffer", "class", ",", "nmem", "alloc", "checked", "(", "check", "malloc", "(", "capacity", ",", "sizeof", ")", ")", ",", "capacity", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "g", "l", "f", "w", "image", "buffer", "}", "instance", "allocated", "with", "{", "@", "link", "memory", "util", "#", "mem", "calloc", "mem", "calloc", "}", "the", "instance", "must", "be", "explicitly", "freed"...
[ "return", "wrap", "(", "buffer", "class", ",", "nmem", "calloc", "checked", "(", "capacity", ",", "sizeof", ")", ",", "capacity", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "g", "l", "f", "w", "image", "buffer", "}", "instance", "allocated", "with", "{", "@", "link", "buffer", "utils", "}" ]
[ "byte", "buffer", "container", "=", "create", "(", "capacity", ",", "sizeof", ")", ";", "return", "wrap", "(", "buffer", "class", ",", "mem", "address", "(", "container", ")", ",", "capacity", ",", "container", ")", ";" ]
[ "create", "a", "{", "@", "link", "g", "l", "f", "w", "image", "buffer", "}", "instance", "at", "the", "specified", "memory" ]
[ "return", "wrap", "(", "buffer", "class", ",", "address", ",", "capacity", ")", ";" ]
[ "like", "{" ]
[ "return", "address", "=", "=", "null", "?", "null", ":", "wrap", "(", "buffer", "class", ",", "address", ",", "capacity", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "malloc", "stack", "(", "stack", "get", "(", ")", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "calloc", "stack", "(", "stack", "get", "(", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "g", "l", "f", "w", "image", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}" ]
[ "return", "wrap", "(", "g", "l", "f", "w", "image", "class", ",", "stack", "nmalloc", "(", "alignof", ",", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "g", "l", "f", "w", "image", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}", "and", "initializes", "all", "its", "bits", "to", "zero" ]
[ "return", "wrap", "(", "g", "l", "f", "w", "image", "class", ",", "stack", "ncalloc", "(", "alignof", ",", "1", ",", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "g", "l", "f", "w", "image", "buffer", "}", "instance", "allocated", "on", "the", "thread", "-", "local", "{", "@", "link", "memory", "stack", "}" ]
[ "return", "malloc", "stack", "(", "capacity", ",", "stack", "get", "(", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "g", "l", "f", "w", "image", "buffer", "}", "instance", "allocated", "on", "the", "thread", "-", "local", "{", "@", "link", "memory", "stack", "}", "and", "initializes", "all", "its", "bits", "to", "zero" ]
[ "return", "calloc", "stack", "(", "capacity", ",", "stack", "get", "(", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "g", "l", "f", "w", "image", "buffer", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}" ]
[ "return", "wrap", "(", "buffer", "class", ",", "stack", "nmalloc", "(", "alignof", ",", "capacity", "*", "sizeof", ")", ",", "capacity", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "g", "l", "f", "w", "image", "buffer", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}", "and", "initializes", "all", "its", "bits", "to", "zero" ]
[ "return", "wrap", "(", "buffer", "class", ",", "stack", "ncalloc", "(", "alignof", ",", "capacity", ",", "sizeof", ")", ",", "capacity", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "unsafe", "get", "int", "(", "null", ",", "struct", "+", "g", "l", "f", "w", "image", "width", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "unsafe", "get", "int", "(", "null", ",", "struct", "+", "g", "l", "f", "w", "image", "height", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "mem", "byte", "buffer", "(", "mem", "get", "address", "(", "struct", "+", "g", "l", "f", "w", "image", "pixels", ")", ",", "capacity", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "unsafe", "put", "int", "(", "null", ",", "struct", "+", "g", "l", "f", "w", "image", "width", ",", "value", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "unsafe", "put", "int", "(", "null", ",", "struct", "+", "g", "l", "f", "w", "image", "height", ",", "value", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "mem", "put", "address", "(", "struct", "+", "g", "l", "f", "w", "image", "pixels", ",", "mem", "address", "(", "value", ")", ")", ";" ]
[ "validates", "pointer", "members", "that", "should", "not", "be", "{", "@", "code", "null", "}" ]
[ "check", "(", "mem", "get", "address", "(", "struct", "+", "g", "l", "f", "w", "image", "pixels", ")", ")", ";" ]
[ "returns", "the", "value", "of", "the", "{" ]
[ "return", "g", "l", "f", "w", "image", "nwidth", "(", "address", "(", ")", ")", ";" ]
[ "returns", "the", "value", "of", "the", "{" ]
[ "return", "g", "l", "f", "w", "image", "nheight", "(", "address", "(", ")", ")", ";" ]
[ "sets", "the", "specified", "value", "to", "the", "{" ]
[ "g", "l", "f", "w", "image", "nwidth", "(", "address", "(", ")", ",", "value", ")", ";", "return", "this", ";" ]
[ "sets", "the", "specified", "value", "to", "the", "{" ]
[ "g", "l", "f", "w", "image", "nheight", "(", "address", "(", ")", ",", "value", ")", ";", "return", "this", ";" ]
[ "convert", "a", "java", "util", "map", "of", "properties", "to", "a", "org", "apache", "hadoop", "conf", "configuration" ]
[ "configuration", "conf", "=", "new", "configuration", "(", ")", ";", "return", "add", "map", "to", "conf", "(", "map", ",", "conf", ")", ";" ]
[ "in", "case", "of", "streams", "with", "low", "traffic", "{", "@", "link", "moving", "function", "}", "could", "never", "get", "enough", "samples", "in", "{", "@", "link", "kinesis", "watermark", "#", "sample", "period", "}", "to", "move", "watermark", "...
[ "boolean", "has", "enough", "samples", "=", "min", "read", "timestamp", "ms", "since", "epoch", "is", "significant", "(", ")", ";", "boolean", "is", "stale", "=", "last", "update", "is", "before", "(", "now", "minus", "(", "update", "threshold", ")", ")"...
[ "must", "be", "non", "-", "null" ]
[ "public", "abstract", "registry", "<", "connection", "socket", "factory", ">", "get", "schema", "registry", "(", ")", ";" ]
[ "creates", "new", "http", "client", "by", "using", "the", "provided", "configuration" ]
[ "return", "create", "client", "(", "params", ",", "create", "pooling", "connection", "manager", "(", ")", ")", ";" ]
[ "test", "usage", "subject", "to", "change" ]
[ "return", "new", "pooling", "http", "client", "connection", "manager", "(", "schema", "registry", "provider", "get", "schema", "registry", "(", ")", ")", ";" ]
[ "creates", "new", "http", "client", "by", "using", "the", "provided", "configuration" ]
[ "return", "create", "client", "(", "params", ",", "cm", ",", "shared", "connection", "manager", ",", "null", ")", ";" ]
[ "create", "a", "http", "client", "context", "object", "and", "{" ]
[ "http", "client", "context", "context", "=", "http", "client", "request", "context", "builder", "create", "context", "(", "http", "solr", "client", "cache", "key", ")", ";", "return", "context", ";" ]
[ "return", "the", "real", "number", "of", "region", "servers", "excluding", "the", "master", "embedded", "region", "server", "in", "2", "0", "+" ]
[ "cluster", "metrics", "status", "=", "admin", "get", "cluster", "metrics", "(", "enum", "set", "of", "(", "option", "master", ",", "option", "live", "servers", ")", ")", ";", "server", "name", "master", "name", "=", "status", "get", "master", "name", "("...
[ "performs", "sparse", "conditional", "constant", "propagation", "on", "a", "method" ]
[ "new", "sccp", "(", "ssa", "method", ")", "run", "(", ")", ";" ]
[ "adds", "a", "ssa", "basic", "block", "to", "the", "cfg", "worklist", "if", "it", "s", "unexecuted", "or", "to", "the", "cfg", "phi", "worklist", "if", "it", "s", "already", "executed" ]
[ "if", "(", "!", "executable", "blocks", "get", "(", "ssa", "block", "get", "index", "(", ")", ")", ")", "{", "cfg", "worklist", "add", "(", "ssa", "block", ")", ";", "executable", "blocks", "set", "(", "ssa", "block", "get", "index", "(", ")", ")",...
[ "adds", "an", "ssa", "register", "s", "uses", "to", "the", "ssa", "worklist" ]
[ "if", "(", "lattice", "value", "=", "=", "varying", ")", "{", "for", "(", "ssa", "insn", "insn", ":", "ssa", "meth", "get", "use", "list", "for", "register", "(", "reg", ")", ")", "{", "varying", "worklist", "add", "(", "insn", ")", ";", "}", "}"...
[ "sets", "a", "lattice", "value", "for", "a", "register", "to", "value" ]
[ "if", "(", "value", "!", "=", "constant", ")", "{", "if", "(", "lattice", "values", "[", "reg", "]", "!", "=", "value", ")", "{", "lattice", "values", "[", "reg", "]", "=", "value", ";", "return", "true", ";", "}", "return", "false", ";", "}", ...
[ "simulates", "a", "phi", "node", "and", "set", "the", "lattice", "for", "the", "result", "to", "the", "appropriate", "value", "meet", "values", ":", "top", "x", "anything", "=", "top", "varying", "x", "anything", "=", "varying", "constant", "x", "constant"...
[ "int", "phi", "result", "reg", "=", "insn", "get", "result", "(", ")", "get", "reg", "(", ")", ";", "if", "(", "lattice", "values", "[", "phi", "result", "reg", "]", "=", "=", "varying", ")", "{", "return", ";", "}", "register", "spec", "list", "...
[ "simulate", "a", "block", "and", "note", "the", "results", "in", "the", "lattice" ]
[ "for", "(", "ssa", "insn", "insn", ":", "block", "get", "insns", "(", ")", ")", "{", "if", "(", "insn", "instanceof", "phi", "insn", ")", "{", "simulate", "phi", "(", "(", "phi", "insn", ")", "insn", ")", ";", "}", "else", "{", "simulate", "stmt"...
[ "simulate", "the", "phis", "in", "a", "block", "and", "note", "the", "results", "in", "the", "lattice" ]
[ "for", "(", "ssa", "insn", "insn", ":", "block", "get", "insns", "(", ")", ")", "{", "if", "(", "insn", "instanceof", "phi", "insn", ")", "{", "simulate", "phi", "(", "(", "phi", "insn", ")", "insn", ")", ";", "}", "else", "{", "return", ";", "...
[ "possible", "values", ":", "<", "ul", ">", "<", "li", ">", "app", "<", "/", "li", ">", "<", "li", ">", "ce", "<", "/", "li", ">", "<", "li", ">", "es", "<", "/", "li", ">", "<", "li", ">", "web", "<", "/", "li", ">", "<", "/", "ul", "...
[ "this", "process", "=", "process", ";", "return", "this", ";" ]
[ "set", "the", "name", "of", "the", "servlet", "context", "attribute", "which", "should", "be", "used", "to", "retrieve", "the", "{" ]
[ "this", "context", "attribute", "=", "context", "attribute", ";" ]
[ "return", "the", "name", "of", "the", "servlet", "context", "attribute", "which", "should", "be", "used", "to", "retrieve", "the", "{" ]
[ "return", "this", "context", "attribute", ";" ]
[ "set", "a", "custom", "context", "class", "this", "class", "must", "be", "of", "type", "{" ]
[ "this", "context", "class", "=", "context", "class", ";" ]
[ "return", "the", "custom", "context", "class" ]
[ "return", "this", "context", "class", ";" ]
[ "specify", "a", "custom", "web", "application", "context", "id", "to", "be", "used", "as", "serialization", "id", "for", "the", "underlying", "bean", "factory" ]
[ "this", "context", "id", "=", "context", "id", ";" ]
[ "return", "the", "custom", "web", "application", "context", "id", "if", "any" ]
[ "return", "this", "context", "id", ";" ]
[ "<", "p", ">", "the", "namespace", "of", "the", "metric", "<", "/", "p", ">" ]
[ "this", "namespace", "=", "namespace", ";" ]
[ "return", "the", "namespace", "for", "this", "servlet", "falling", "back", "to", "default", "scheme", "if", "no", "custom", "namespace", "was", "set", ":", "e", "g", "test", "-", "servlet", "for", "a", "servlet", "named", "test" ]
[ "return", "(", "this", "namespace", "!", "=", "null", "?", "this", "namespace", ":", "get", "servlet", "name", "(", ")", "+", "default", "namespace", "suffix", ")", ";" ]
[ "set", "the", "context", "config", "location", "explicitly", "instead", "of", "relying", "on", "the", "default", "location", "built", "from", "the", "namespace", "this", "location", "string", "can", "consist", "of", "multiple", "locations", "separated", "by", "a...
[ "this", "context", "config", "location", "=", "context", "config", "location", ";" ]
[ "return", "the", "explicit", "context", "config", "location", "if", "any" ]
[ "return", "this", "context", "config", "location", ";" ]
[ "specify", "the", "set", "of", "fully", "-", "qualified", "{" ]
[ "this", "context", "initializer", "classes", "=", "context", "initializer", "classes", ";" ]
[ "set", "whether", "to", "publish", "this", "servlet", "s", "context", "as", "a", "servlet", "context", "attribute", "available", "to", "all", "objects", "in", "the", "web", "container", "default", "is", "true", "<", "p", ">", "this", "is", "especially", "h...
[ "this", "publish", "context", "=", "publish", "context", ";" ]
[ "set", "whether", "this", "servlet", "should", "publish", "a", "servlet", "request", "handled", "event", "at", "the", "end", "of", "each", "request", "default", "is", "true", ";", "can", "be", "turned", "off", "for", "a", "slight", "performance", "improvemen...
[ "this", "publish", "events", "=", "publish", "events", ";" ]
[ "set", "whether", "to", "expose", "the", "locale", "context", "and", "request", "attributes", "as", "inheritable", "for", "child", "threads", "(", "using", "an", "{" ]
[ "this", "thread", "context", "inheritable", "=", "thread", "context", "inheritable", ";" ]
[ "whether", "to", "log", "form", "data", "at", "debug", "level", "and", "headers", "at", "trace", "level", "both", "may", "contain", "sensitive", "information", "<", "p", ">", "by", "default", "set", "to", "{" ]
[ "this", "enable", "logging", "request", "details", "=", "enable", ";" ]
[ "whether", "any", "logging", "of", "values", "being", "encoded", "or", "decoded", "is", "explicitly", "disabled", "regardless", "of", "log", "level" ]
[ "return", "this", "enable", "logging", "request", "details", ";" ]
[ "called", "by", "spring", "via", "{" ]
[ "if", "(", "this", "web", "application", "context", "=", "=", "null", "&", "&", "application", "context", "instanceof", "web", "application", "context", ")", "{", "this", "web", "application", "context", "=", "(", "web", "application", "context", ")", "appli...
[ "instantiate", "the", "web", "application", "context", "for", "this", "servlet", "either", "a", "default", "{" ]
[ "return", "create", "web", "application", "context", "(", "(", "application", "context", ")", "parent", ")", ";" ]
[ "post", "-", "process", "the", "given", "web", "application", "context", "before", "it", "is", "refreshed", "and", "activated", "as", "context", "for", "this", "servlet", "<", "p", ">", "the", "default", "implementation", "is", "empty", "{" ]
[]
[ "delegate", "the", "web", "application", "context", "before", "it", "is", "refreshed", "to", "any", "{" ]
[ "string", "global", "class", "names", "=", "get", "servlet", "context", "(", ")", "get", "init", "parameter", "(", "context", "loader", "global", "initializer", "classes", "param", ")", ";", "if", "(", "global", "class", "names", "!", "=", "null", ")", "...
[ "return", "the", "servlet", "context", "attribute", "name", "for", "this", "servlet", "s", "web", "application", "context", "<", "p", ">", "the", "default", "implementation", "returns", "{" ]
[ "return", "servlet", "context", "prefix", "+", "get", "servlet", "name", "(", ")", ";" ]
[ "return", "this", "servlet", "s", "web", "application", "context" ]
[ "return", "this", "web", "application", "context", ";" ]
[ "this", "method", "will", "be", "invoked", "after", "any", "bean", "properties", "have", "been", "set", "and", "the", "web", "application", "context", "has", "been", "loaded", "the", "default", "implementation", "is", "empty", ";", "subclasses", "may", "overri...
[]
[ "callback", "that", "receives", "refresh", "events", "from", "this", "servlet", "s", "web", "application", "context", "<", "p", ">", "the", "default", "implementation", "calls", "{" ]
[ "this", "refresh", "event", "received", "=", "true", ";", "on", "refresh", "(", "event", "get", "application", "context", "(", ")", ")", ";" ]
[ "override", "the", "parent", "class", "implementation", "in", "order", "to", "intercept", "patch", "requests" ]
[ "http", "method", "http", "method", "=", "http", "method", "resolve", "(", "request", "get", "method", "(", ")", ")", ";", "if", "(", "http", "method", "=", "=", "http", "method", "patch", "|", "|", "http", "method", "=", "=", "null", ")", "{", "pr...
[ "delegate", "get", "requests", "to", "process", "request", "/", "do", "service", "<", "p", ">", "will", "also", "be", "invoked", "by", "http", "servlet", "s", "default", "implementation", "of", "{" ]
[ "process", "request", "(", "request", ",", "response", ")", ";" ]
[ "delegate", "post", "requests", "to", "{" ]
[ "process", "request", "(", "request", ",", "response", ")", ";" ]
[ "delegate", "put", "requests", "to", "{" ]
[ "process", "request", "(", "request", ",", "response", ")", ";" ]
[ "delegate", "delete", "requests", "to", "{" ]
[ "process", "request", "(", "request", ",", "response", ")", ";" ]
[ "build", "a", "locale", "context", "for", "the", "given", "request", "exposing", "the", "request", "s", "primary", "locale", "as", "current", "locale" ]
[ "return", "new", "simple", "locale", "context", "(", "request", "get", "locale", "(", ")", ")", ";" ]
[ "determine", "the", "username", "for", "the", "given", "request", "<", "p", ">", "the", "default", "implementation", "takes", "the", "name", "of", "the", "user", "principal", "if", "any", "can", "be", "overridden", "in", "subclasses" ]
[ "principal", "user", "principal", "=", "request", "get", "user", "principal", "(", ")", ";", "return", "(", "user", "principal", "!", "=", "null", "?", "user", "principal", "get", "name", "(", ")", ":", "null", ")", ";" ]
[ "subclasses", "must", "implement", "this", "method", "to", "do", "the", "work", "of", "request", "handling", "receiving", "a", "centralized", "callback", "for", "get", "post", "put", "and", "delete", "<", "p", ">", "the", "contract", "is", "essentially", "th...
[ "protected", "abstract", "void", "do", "service", "(", "http", "servlet", "request", "request", ",", "http", "servlet", "response", "response", ")", "throws", "exception", ";" ]
[ "adds", "a", "copy", "of", "the", "specified", "constant", "in", "the", "given", "class", "and", "returns", "its", "index", "if", "the", "specified", "index", "is", "0", "the", "returned", "value", "is", "0", "too" ]
[ "clazz", "constant", "pool", "entry", "accept", "(", "constant", "index", ",", "this", ")", ";", "return", "this", "constant", "index", ";" ]
[ "adds", "a", "copy", "of", "the", "given", "constant", "in", "the", "given", "class", "and", "returns", "its", "index" ]
[ "constant", "accept", "(", "clazz", ",", "this", ")", ";", "return", "this", "constant", "index", ";" ]