Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanoNative/nano
/ functions
Functions
670 in github.com/NanoNative/nano
⨍
Functions
670
◇
Types & classes
61
↓ 6 callers
Method
response
Returns the response value set via {@link #respond(Object)}. @return the response; may be {@code null} if none
src/main/java/org/nanonative/nano/helper/event/model/Event.java:296
↓ 6 callers
Method
sendEventError
Sends an unhandled event with the provided, nullable payload and exception. If the event is not acknowledged, the error message is logged. @param pay
src/main/java/org/nanonative/nano/core/model/Context.java:796
↓ 6 callers
Method
stopCount
()
src/test/java/org/nanonative/nano/model/TestService.java:88
↓ 6 callers
Method
stopNano
(final Nano nano, final Context ctx)
src/test/java/org/nanonative/nano/services/file/FileWatcherTest.java:315
↓ 6 callers
Method
toString
()
src/main/java/org/nanonative/nano/services/metric/model/MetricCache.java:191
↓ 6 callers
Method
uri
()
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:867
↓ 6 callers
Method
userAgent
Retrieves the {@link HttpHeaders#USER_AGENT} header from the {@link HttpObject}. @return the user agent string, or {@code null} if not set.
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:599
↓ 6 callers
Method
warn
Logs a message with the specified log level. @param message The message to log. @param params The parameters to replace in the message. @return self
src/main/java/org/nanonative/nano/core/model/Context.java:228
↓ 5 callers
Method
activeNanoThreads
()
src/main/java/org/nanonative/nano/core/model/NanoThread.java:108
↓ 5 callers
Method
addConfig
(final Context context, final Object key, final Object value)
src/main/java/org/nanonative/nano/helper/NanoUtils.java:267
↓ 5 callers
Method
apply
(T t)
src/main/java/org/nanonative/nano/helper/ExFunction.java:9
↓ 5 callers
Method
authToken
Parses and returns any authentication token found in the {@link HttpHeaders#AUTHORIZATION} header. Supports both 'Bearer' and 'Basic' authentication s
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:621
↓ 5 callers
Method
bodyAsList
Returns {@link TypeList} of the {@link HttpObject#body()}, decoded using the {@link Charset} from {@link HttpObject#encoding()} specified in the {@lin
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:374
↓ 5 callers
Method
bodyAsMap
Returns {@link LinkedTypeMap} of the {@link HttpObject#body()}, decoded using the {@link Charset} from {@link HttpObject#encoding()} specified in the
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:365
↓ 5 callers
Method
counterIncrement
(final String name)
src/main/java/org/nanonative/nano/services/metric/model/MetricCache.java:42
↓ 5 callers
Method
counters
()
src/main/java/org/nanonative/nano/services/metric/model/MetricCache.java:22
↓ 5 callers
Method
createMockHttpExchange
(final String method, final String path, final Headers headers, final String testBody)
src/test/java/org/nanonative/nano/model/HttpObjectTest.java:750
↓ 5 callers
Method
followRedirects
Returns whether this {@link HttpClient} follows redirects. @return {@code true} if redirects are followed, {@code false} otherwise
src/main/java/org/nanonative/nano/services/http/HttpClient.java:135
↓ 5 callers
Method
formatDuration
(final long nanos)
src/main/java/org/nanonative/nano/helper/NanoUtils.java:78
↓ 5 callers
Method
fromExchange
(final Function<HttpExchange, T> mapper)
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:1462
↓ 5 callers
Method
gauges
()
src/main/java/org/nanonative/nano/services/metric/model/MetricCache.java:26
↓ 5 callers
Method
getKindName
Get the kind name as a string for easier processing
src/main/java/org/nanonative/nano/services/file/FileChangeEvent.java:38
↓ 5 callers
Method
isMethodGet
()
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:1298
↓ 5 callers
Method
method
()
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:847
↓ 5 callers
Method
respond
Sends an HTTP response using the current {@link HttpObject} as the response context. This should be called after {@link HttpObject#createResponse()} T
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:1079
↓ 5 callers
Method
runR
Executes one or multiple runnable asynchronously. @param runnable function to execute. @return {@link NanoThread}s
src/main/java/org/nanonative/nano/core/model/Context.java:684
↓ 5 callers
Method
sendResponse
(final HttpExchange exchange, final HttpObject request, final HttpObject response)
src/main/java/org/nanonative/nano/services/http/HttpServer.java:168
↓ 5 callers
Method
sizeRequest
Sets the HTTP Range header to request only the first byte of the content. This method is typically used to determine the size of the content without d
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:743
↓ 5 callers
Method
standardiseKey
Standardizes a config key. @param key The config key to be standardized.
src/main/java/org/nanonative/nano/core/NanoBase.java:347
↓ 5 callers
Method
start
Starts the service. This method is called during service initialization. Optional implementation - services can leave this empty if no startup logic i
src/main/java/org/nanonative/nano/core/model/Service.java:49
↓ 5 callers
Method
timers
()
src/main/java/org/nanonative/nano/services/metric/model/MetricCache.java:30
↓ 5 callers
Method
toString
Performs the toString operation. @return the result
src/main/java/org/nanonative/nano/core/Nano.java:496
↓ 5 callers
Method
toString
()
src/main/java/org/nanonative/nano/services/http/HttpServer.java:206
↓ 5 callers
Method
toString
()
src/main/java/org/nanonative/nano/services/logging/LogService.java:108
↓ 4 callers
Method
authTokens
Parses and returns any authentication token found in the {@link HttpHeaders#AUTHORIZATION} header. Supports both 'Bearer' and 'Basic' authentication s
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:644
↓ 4 callers
Method
clazz
()
src/main/java/org/nanonative/nano/core/model/Context.java:924
↓ 4 callers
Method
computedHeaders
<p> Constructs and returns a map of HTTP headers to be included in an HTTP response. This method ensures that essential headers are set, providing a s
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:722
↓ 4 callers
Method
connectionTimeoutMs
Returns the connection timeout in milliseconds configured for this {@link HttpClient}. @return the connection timeout in milliseconds
src/main/java/org/nanonative/nano/services/http/HttpClient.java:153
↓ 4 callers
Method
containsHeader
Checks if a specified header exists in the {@link HttpObject}. @param key the key of the header to check. @return {@code true} if the header exists,
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:590
↓ 4 callers
Method
estimateStringSize
(final String string)
src/main/java/org/nanonative/nano/services/metric/logic/MetricService.java:419
↓ 4 callers
Method
getThreadName
(final ExecutorService executorService)
src/main/java/org/nanonative/nano/helper/NanoUtils.java:188
↓ 4 callers
Method
isDelete
Check if this is a deletion event
src/main/java/org/nanonative/nano/services/file/FileChangeEvent.java:59
↓ 4 callers
Method
isModify
Check if this is a modification event
src/main/java/org/nanonative/nano/services/file/FileChangeEvent.java:52
↓ 4 callers
Method
nanoLogLevelOf
(final Level level)
src/main/java/org/nanonative/nano/services/logging/model/LogLevel.java:28
↓ 4 callers
Method
pathParams
Retrieves a map of path parameters extracted from the URL. @return a {@link TypeMap} of path parameters.
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:558
↓ 4 callers
Method
pid
Retrieves the process ID of the current instance. @return The process ID.
src/main/java/org/nanonative/nano/core/NanoBase.java:216
↓ 4 callers
Method
responseOpt
Returns the response as an {@link Optional}. @return optional response
src/main/java/org/nanonative/nano/helper/event/model/Event.java:305
↓ 4 callers
Method
runAwait
Executes asynchronously and waits for all runnable to be ready @param runnable function to execute. @return The {@link Context} object for chaining f
src/main/java/org/nanonative/nano/core/model/Context.java:728
↓ 4 callers
Method
runReturnHandled
Executes one or multiple runnable asynchronously. @param onFailure function to execute on failure @param runnable function to execute. @return {@lin
src/main/java/org/nanonative/nano/core/model/Context.java:695
↓ 4 callers
Method
startConcurrentThreads
(final AtomicInteger doneThreads)
src/test/java/org/nanonative/nano/core/model/NanoThreadTest.java:86
↓ 4 callers
Method
subscribeEvent
Registers an event listener with a typed payload. @param channel The channel to be subscribed. @param listener The bi-consumer to receive the {@link
src/main/java/org/nanonative/nano/core/model/Context.java:408
↓ 4 callers
Method
testHttpsServer
(Path cert, Path key, String password)
src/test/java/org/nanonative/nano/services/http/HttpServerTest.java:439
↓ 3 callers
Method
activeCarrierThreads
()
src/main/java/org/nanonative/nano/core/model/NanoThread.java:112
↓ 3 callers
Method
applyOverlays
(final Context ctx, final TypeMap cliArgs)
src/main/java/org/nanonative/nano/core/NanoBase.java:336
↓ 3 callers
Method
asyncFromPool
Creates a {@link Scheduler} from the thread pool. @return The newly created {@link Scheduler}.
src/main/java/org/nanonative/nano/core/NanoThreads.java:261
↓ 3 callers
Method
bodyT
Sets the {@link HttpObject#body()} from a {@link TypeInfo} object, encoding it into JSON format using the {@link Charset} from {@link HttpObject#encod
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:410
↓ 3 callers
Method
channelOf
Attempts to find the {@link Channel} based on its name. This method is primarily used for debugging or startup purposes and is not optimized for perfo
src/main/java/org/nanonative/nano/helper/event/model/Channel.java:67
↓ 3 callers
Method
configure
Configures the service with the provided configuration. This is a convenience method that calls configure(config, config). Optional override - default
src/main/java/org/nanonative/nano/core/model/Service.java:94
↓ 3 callers
Method
configureHttps
Configures SSL/TLS for an existing HTTPS server. Loads certificates, keys, and keystores from the context. @param context configuration context with
src/main/java/org/nanonative/nano/services/http/HttpsHelper.java:100
↓ 3 callers
Method
containsQueryParam
Checks if a specific query parameter exists in the {@link HttpObject}. @param key the query parameter key to check. @return {@code true} if the param
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:489
↓ 3 callers
Method
convertHeaders
Converts a map of simple header values to a {@link TypeMap} of headers. @param headers a map containing header names and values. @return a {@link Typ
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:1517
↓ 3 callers
Method
deleteTree
(final Path root)
src/test/java/org/nanonative/nano/testutil/TestFiles.java:16
↓ 3 callers
Method
doOnEvent
()
src/test/java/org/nanonative/nano/model/TestService.java:100
↓ 3 callers
Method
dynatrace
()
src/main/java/org/nanonative/nano/services/metric/model/MetricCache.java:135
↓ 3 callers
Method
estimateMapSize
(final Map<String, MetricCache.Metric<?>> map, final long numberSize)
src/main/java/org/nanonative/nano/services/metric/logic/MetricService.java:399
↓ 3 callers
Method
exchange
Returns the associated {@link HttpExchange} for this {@link HttpObject}. @return the {@link HttpExchange}, or {@code null} if not available.
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:664
↓ 3 callers
Method
executeScheduler
Executes the task. @param context the context @param task the task @param scheduler the scheduler @param periodically the periodicall
src/main/java/org/nanonative/nano/core/NanoThreads.java:339
↓ 3 callers
Method
exit
Performs the exit operation. @param context the context @param exitCode the exitCode
src/main/java/org/nanonative/nano/core/Nano.java:439
↓ 3 callers
Method
generateNanoName
(final String format)
src/main/java/org/nanonative/nano/helper/NanoUtils.java:359
↓ 3 callers
Method
getRemoteAddress
()
src/test/java/org/nanonative/nano/model/HttpObjectTest.java:798
↓ 3 callers
Method
getRequestURI
()
src/test/java/org/nanonative/nano/model/HttpObjectTest.java:763
↓ 3 callers
Method
getResponseHeaders
()
src/test/java/org/nanonative/nano/model/HttpObjectTest.java:758
↓ 3 callers
Method
handleJavaError
Handles a Java error by logging it and shutting down the application. Note: it's likely that the application won't handle OOM errors. For OOM see {@li
src/main/java/org/nanonative/nano/helper/NanoUtils.java:378
↓ 3 callers
Method
initialPlanned
Calculates the first execution time after now for the given wall-clock time and day of week. @param atTime the wall-clock time @param dow optional
src/main/java/org/nanonative/nano/core/NanoThreads.java:171
↓ 3 callers
Method
isChannelIdAvailable
Checks if a {@link Channel} with the given id exists. @param id The id of the {@link Channel} to check. @return true if a {@link Channel} with the g
src/main/java/org/nanonative/nano/helper/event/model/Channel.java:90
↓ 3 callers
Method
isExpr
(final String s)
src/main/java/org/nanonative/nano/helper/NanoUtils.java:304
↓ 3 callers
Method
isFrontendCall
Determines if the {@link HttpObject} originates from a standard web browser based on the {@link HttpHeaders#USER_AGENT} header. See {@link HttpObject#
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:1203
↓ 3 callers
Method
isMobileCall
Determines if the {@link HttpObject} originates from a mobile device based on the {@link HttpHeaders#USER_AGENT} header. See {@link HttpObject#USER_AG
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:1217
↓ 3 callers
Method
jsonEscape
Escapes special characters for JSON compatibility. @param value The object to escape. @return The escaped string.
src/main/java/org/nanonative/nano/services/logging/LogFormatterJson.java:122
↓ 3 callers
Method
onComplete
(final BiConsumer<NanoThread, Throwable> listener)
src/main/java/org/nanonative/nano/core/model/NanoThread.java:43
↓ 3 callers
Method
prometheus
()
src/main/java/org/nanonative/nano/services/metric/model/MetricCache.java:122
↓ 3 callers
Method
queryParam
Retrieves the value of a specified query parameter. @param key the key of the query parameter to retrieve. @return the value of the parameter as a St
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:499
↓ 3 callers
Method
queryParamsOf
(final String query)
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:821
↓ 3 callers
Method
resetEvents
()
src/test/java/org/nanonative/nano/model/TestService.java:37
↓ 3 callers
Method
retries
Returns the number of retries configured for this {@link HttpClient}. @return the number of retries
src/main/java/org/nanonative/nano/services/http/HttpClient.java:126
↓ 3 callers
Method
sendError
(HttpObject req, Event<?, ?> event, int status, String message)
src/test/java/org/nanonative/nano/examples/SimpleUserApi.java:185
↓ 3 callers
Method
stop
()
src/test/java/org/nanonative/nano/model/TestService.java:149
↓ 3 callers
Method
subscribeError
Registers for global error handling. @param channel The channel which should be handled on error. @param listener The bi-consumer to receive the {@l
src/main/java/org/nanonative/nano/core/NanoBase.java:181
↓ 3 callers
Method
testHttpsServerWithKeystore
(Path kts)
src/test/java/org/nanonative/nano/services/http/HttpServerTest.java:460
↓ 3 callers
Method
timerStart
(final String name)
src/main/java/org/nanonative/nano/services/metric/model/MetricCache.java:86
↓ 3 callers
Method
timerStop
(final String name)
src/main/java/org/nanonative/nano/services/metric/model/MetricCache.java:99
↓ 3 callers
Method
toString
()
src/main/java/org/nanonative/nano/core/model/Context.java:936
↓ 3 callers
Method
toString
()
src/main/java/org/nanonative/nano/services/http/HttpClient.java:84
↓ 3 callers
Method
unregisterService
Unregisters a {@link Service} from the {@link Nano} framework and stops it. @param context The {@link Context} in which the {@link Service} is unregi
src/main/java/org/nanonative/nano/core/NanoServices.java:134
↓ 3 callers
Method
usedMemoryMB
Calculates the memory usage of the application in megabytes. @return Memory usage in megabytes, rounded to two decimal places.
src/main/java/org/nanonative/nano/core/NanoBase.java:225
↓ 2 callers
Method
acceptEncoding
()
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:260
↓ 2 callers
Method
acceptLanguage
()
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:288
↓ 2 callers
Method
address
Retrieves the {@link InetAddress} from the {@link HttpExchange}. @return an {@link InetAddress} representing the remote address, or {@code null} if i
src/main/java/org/nanonative/nano/services/http/model/HttpObject.java:1255
↓ 2 callers
Method
applyCustomFormat
Replacing placeholders with parameters. @param message the message to be formatted. @param params the parameters for the message. @return a string w
src/main/java/org/nanonative/nano/services/logging/LogFormatterConsole.java:81
↓ 2 callers
Method
client
()
src/main/java/org/nanonative/nano/services/http/HttpClient.java:166
← previous
next →
101–200 of 670, ranked by callers