Uses of Class
net.i2p.router.RouterContext
-
Packages that use RouterContext Package Description net.i2p.data.i2np This package defines the low-level messages sent between routers, called the Invisible Internet Network Protocol (I2NP).net.i2p.desktopgui Desktopgui is a graphical interface to I2P that allows managing the lifecycle of I2P from the system tray.net.i2p.desktopgui.router net.i2p.i2pcontrol net.i2p.i2pcontrol.servlets net.i2p.i2pcontrol.servlets.jsonrpc2handlers net.i2p.router The I2P router application handles the I2P network communication.net.i2p.router.client Implements the router side of the I2CP interface, which is the API for applications to send and receive data through the router.net.i2p.router.crypto Classes formerly in net.i2p.crypto but moved here as they are only used by the router.net.i2p.router.crypto.ratchet Implementation of ECIES-X25519-AEAD-Ratchet (proposal 144).net.i2p.router.dummy Dummy versions of things for testing.net.i2p.router.message Creates and parses garlic messages.net.i2p.router.networkdb A couple of classes, but most things are in kademlia.net.i2p.router.networkdb.kademlia The network database, including implementation of floodfills.net.i2p.router.networkdb.reseed Fetching, validation, unpacking, and installation of RouterInfos from signed su3 files, unsigned zip files, and web indexes.net.i2p.router.peermanager The peer manager logs information about the history and quality of network peers.net.i2p.router.startup The I2P startup package loads the configuration when I2P is started.net.i2p.router.sybil Classes to run offline Sybil analysis, and to store and load the results.net.i2p.router.tasks Miscellaneous classes, mostly things that are executed periodically as Jobs, Threads, and SimpleTimer.TimedEvents.net.i2p.router.transport The transport system allows the usage of communication layers that are below I2P in the stack, on which I2P messages are sent.net.i2p.router.transport.ntcp The NTCP transport allows passing I2P messages on top of TCP.net.i2p.router.transport.udp The UDP transport (also known as 'SSU transport') allows passing I2P messages on top of UDP.net.i2p.router.tunnel All the work of managing locally created and participating tunnels, creating and handling tunnel messages, and their encryption.net.i2p.router.tunnel.pool Tunnel creation, tunnel build message handling.net.i2p.router.update Classes to implement the update process.net.i2p.router.util These classes define the several useful utilities used throughout the router.net.i2p.router.web The router console user interface, implemented in routerconsole.jar, with these classes supporting the webapp in routerconsole.war.net.i2p.router.web.helpers Helpers and handlers for the router console user interface, with these classes supporting the webapp in routerconsole.war. -
-
Uses of RouterContext in net.i2p.data.i2np
Methods in net.i2p.data.i2np with parameters of type RouterContext Modifier and Type Method Description EncryptedBuildRecord
BuildRequestRecord. encryptECIESRecord(RouterContext ctx, PublicKey toKey, Hash toPeer)
Encrypt the record to the specified peer.Constructors in net.i2p.data.i2np with parameters of type RouterContext Constructor Description BuildRequestRecord(RouterContext ctx, PrivateKey ourKey, EncryptedBuildRecord encryptedRecord)
Decrypt the data from the specified record, writing the decrypted record into this instance's data buffer Caller MUST check that first 16 bytes of our hash matches first 16 bytes of encryptedRecord before calling this. -
Uses of RouterContext in net.i2p.desktopgui
Constructors in net.i2p.desktopgui with parameters of type RouterContext Constructor Description InternalTrayManager(RouterContext ctx, Main main, boolean useSwing)
Main(RouterContext ctx, ClientAppManager mgr, String[] args)
-
Uses of RouterContext in net.i2p.desktopgui.router
Methods in net.i2p.desktopgui.router with parameters of type RouterContext Modifier and Type Method Description static void
RouterManager. cancelShutdown(RouterContext ctx)
Cancel a graceful shutdown or restartstatic long
RouterManager. getShutdownTimeRemaining(RouterContext ctx)
Get time until shutdownstatic String
RouterManager. getStatus(RouterContext ctx)
Get network status, untranslatedstatic boolean
RouterManager. isShutdownInProgress(RouterContext ctx)
Is a graceful shutdown or restart in progress?static void
RouterManager. restart(RouterContext ctx)
Restart the running I2P instance.static void
RouterManager. restartGracefully(RouterContext ctx)
Restart the running I2P instance.static void
RouterManager. shutDown(RouterContext ctx)
Stop the running I2P instance.static void
RouterManager. shutDownGracefully(RouterContext ctx)
Stop the running I2P instance. -
Uses of RouterContext in net.i2p.i2pcontrol
Constructors in net.i2p.i2pcontrol with parameters of type RouterContext Constructor Description I2PControlController(RouterContext ctx, ClientAppManager mgr, String[] args)
RouterApp (new way)SocketController(RouterContext ctx, ClientAppManager mgr, String[] args)
RouterApp (new way) -
Uses of RouterContext in net.i2p.i2pcontrol.servlets
Constructors in net.i2p.i2pcontrol.servlets with parameters of type RouterContext Constructor Description JSONRPC2Servlet(RouterContext ctx, SecurityManager secMan)
Plugin -
Uses of RouterContext in net.i2p.i2pcontrol.servlets.jsonrpc2handlers
Constructors in net.i2p.i2pcontrol.servlets.jsonrpc2handlers with parameters of type RouterContext Constructor Description AdvancedSettingsHandler(RouterContext ctx, JSONRPC2Helper helper)
I2PControlHandler(RouterContext ctx, JSONRPC2Helper helper, SecurityManager secMan)
NetworkSettingHandler(RouterContext ctx, JSONRPC2Helper helper)
RouterInfoHandler(RouterContext ctx, JSONRPC2Helper helper)
RouterManagerHandler(RouterContext ctx, JSONRPC2Helper helper)
-
Uses of RouterContext in net.i2p.router
Fields in net.i2p.router declared as RouterContext Modifier and Type Field Description protected RouterContext
RouterThrottleImpl. _context
Methods in net.i2p.router that return RouterContext Modifier and Type Method Description RouterContext
JobImpl. getContext()
RouterContext
Router. getContext()
Non-null, but take care when accessing context items before runRouter() is called as the context will not be initialized.Methods in net.i2p.router that return types with arguments of type RouterContext Modifier and Type Method Description (package private) static List<RouterContext>
RouterContext. getContexts()
Same as listContexts() but package private and modifiable.static List<RouterContext>
RouterContext. listContexts()
Retrieve the list of router contexts currently instantiated in this JVM.Methods in net.i2p.router with parameters of type RouterContext Modifier and Type Method Description (package private) static boolean
RouterContext. setGlobalContext(RouterContext ctx)
Sets the default context, unless there is one already. -
Uses of RouterContext in net.i2p.router.client
Fields in net.i2p.router.client declared as RouterContext Modifier and Type Field Description protected RouterContext
ClientConnectionRunner. _context
protected RouterContext
ClientListenerRunner. _context
protected RouterContext
ClientMessageEventListener. _context
protected RouterContext
ClientManager. _ctx
-
Uses of RouterContext in net.i2p.router.crypto
Constructors in net.i2p.router.crypto with parameters of type RouterContext Constructor Description FamilyKeyCrypto(RouterContext context)
For signing and verification. -
Uses of RouterContext in net.i2p.router.crypto.ratchet
Fields in net.i2p.router.crypto.ratchet declared as RouterContext Modifier and Type Field Description protected RouterContext
RatchetSKM. _context
Constructors in net.i2p.router.crypto.ratchet with parameters of type RouterContext Constructor Description ACKTimer(RouterContext context, Destination from, Destination to)
Caller must scheduleECIESAEADEngine(RouterContext ctx)
Caller MUST call startup() to get threaded generation.Elg2KeyFactory(RouterContext ctx)
MuxedEngine(RouterContext ctx)
RatchetSKM(RouterContext context)
For the router SKM only.RatchetSKM(RouterContext context, Destination dest)
The session key manager is constructed and accessed through the client manager. -
Uses of RouterContext in net.i2p.router.dummy
Constructors in net.i2p.router.dummy with parameters of type RouterContext Constructor Description DummyClientManagerFacade(RouterContext ctx)
DummyNetworkDatabaseFacade(RouterContext ctx)
VMCommSystem(RouterContext context)
-
Uses of RouterContext in net.i2p.router.message
Methods in net.i2p.router.message with parameters of type RouterContext Modifier and Type Method Description static GarlicMessage
GarlicMessageBuilder. buildECIESMessage(RouterContext ctx, GarlicConfig config)
Encrypt from an anonymous source.(package private) static GarlicMessage
GarlicMessageBuilder. buildECIESMessage(RouterContext ctx, GarlicConfig config, Hash from, Destination to, SessionKeyManager skm, ReplyCallback callback)
ECIES_X25519 only.static GarlicMessage
GarlicMessageBuilder. buildMessage(RouterContext ctx, GarlicConfig config, Set<SessionTag> wrappedTags, PublicKey target, SessionKey encryptKey, SessionTag encryptTag)
ELGAMAL_2048 only.static GarlicMessage
GarlicMessageBuilder. buildMessage(RouterContext ctx, GarlicConfig config, SessionKey wrappedKey, Set<SessionTag> wrappedTags, int numTagsToDeliver, int lowTagsThreshold, SessionKeyManager skm)
ELGAMAL_2048 only.static GarlicMessage
GarlicMessageBuilder. buildMessage(RouterContext ctx, GarlicConfig config, SessionKey wrappedKey, Set<SessionTag> wrappedTags, int numTagsToDeliver, SessionKeyManager skm)
ELGAMAL_2048 only.static GarlicMessage
GarlicMessageBuilder. buildMessage(RouterContext ctx, GarlicConfig config, SessionKey wrappedKey, Set<SessionTag> wrappedTags, SessionKeyManager skm)
Now unused, since we have to generate a reply token first in OCMOSJ but we don't know if tags are required yet.static GarlicMessage
GarlicMessageBuilder. buildMessage(RouterContext ctx, GarlicConfig config, SessionKey encryptKey, RatchetSessionTag encryptTag)
Ratchet only.(package private) static GarlicMessage
OutboundClientMessageJobHelper. createGarlicMessage(RouterContext ctx, long replyToken, long expiration, PublicKey recipientPK, PayloadGarlicConfig dataClove, Hash from, Destination dest, TunnelInfo replyTunnel, int tagsToSendOverride, int lowTagsOverride, SessionKey wrappedKey, Set<SessionTag> wrappedTags, boolean requireAck, LeaseSet bundledReplyLeaseSet, ReplyCallback callback)
Allow the app to specify the data clove directly, which enables OutboundClientMessage to resend the same payload (including expiration and unique id) in different garlics (down different tunnels) This is called from OCMOSJstatic void
OutboundClientMessageOneShotJob. init(RouterContext ctx)
call once only(package private) static boolean
GarlicMessageBuilder. needsTags(RouterContext ctx, PublicKey key, Hash local, int minTagOverride)
ELGAMAL_2048 only. -
Uses of RouterContext in net.i2p.router.networkdb
Constructors in net.i2p.router.networkdb with parameters of type RouterContext Constructor Description HandleDatabaseLookupMessageJob(RouterContext ctx, DatabaseLookupMessage receivedMessage, RouterIdentity from, Hash fromHash)
PublishLocalRouterInfoJob(RouterContext ctx)
-
Uses of RouterContext in net.i2p.router.networkdb.kademlia
Fields in net.i2p.router.networkdb.kademlia declared as RouterContext Modifier and Type Field Description protected RouterContext
KademliaNetworkDatabaseFacade. _context
protected RouterContext
PeerSelector. _context
protected RouterContext
TransientDataStore. _context
Methods in net.i2p.router.networkdb.kademlia with parameters of type RouterContext Modifier and Type Method Description static MessageWrapper.OneTimeSession
MessageWrapper. generateSession(RouterContext ctx, long expiration)
Create a single key and tag, for receiving a single encrypted message, and register it with the client's session key manager, to expire in the time specified.static MessageWrapper.OneTimeSession
MessageWrapper. generateSession(RouterContext ctx, SessionKeyManager skm, long expiration, boolean forceElG)
Create a single key and tag, for receiving a single encrypted message, and register it with the client's session key manager, to expire in the time specified.static MessageWrapper.OneTimeSession
MessageWrapper. generateSession(RouterContext ctx, Hash localDest, long expiration, boolean forceElG)
Create a single key and tag, for receiving a single encrypted message, and register it with the client's session key manager, to expire in the time specified.static File
PersistentDataStore. getRouterInfoFile(RouterContext ctx, Hash hash)
The persistent RI file for a hash.(package private) static boolean
SearchJob. onlyQueryFloodfillPeers(RouterContext ctx)
this is now misnamed, as it is only used to determine whether to return floodfill peers only(package private) static MessageWrapper.WrappedMessage
MessageWrapper. wrap(RouterContext ctx, I2NPMessage m, Hash from, RouterInfo to)
Garlic wrap a message from a client or this router, destined for a router, to hide the contents from the OBEP.static GarlicMessage
MessageWrapper. wrap(RouterContext ctx, I2NPMessage m, RouterInfo to)
Garlic wrap a message from nobody, destined for a router, to hide the contents from the OBEP.static GarlicMessage
MessageWrapper. wrap(RouterContext ctx, I2NPMessage m, SessionKey encryptKey, SessionTag encryptTag)
Garlic wrap a message from nobody, destined for an unknown router, to hide the contents from the IBGW.static GarlicMessage
MessageWrapper. wrap(RouterContext ctx, I2NPMessage m, SessionKey encryptKey, RatchetSessionTag encryptTag)
Garlic wrap a message from nobody, destined for an unknown router, to hide the contents from the IBGW.static GarlicMessage
MessageWrapper. wrap(RouterContext ctx, I2NPMessage m, MessageWrapper.OneTimeSession session)
Garlic wrap a message from nobody, destined for an unknown router, to hide the contents from the IBGW. -
Uses of RouterContext in net.i2p.router.networkdb.reseed
Constructors in net.i2p.router.networkdb.reseed with parameters of type RouterContext Constructor Description ReseedBundler(RouterContext ctx)
ReseedChecker(RouterContext context)
All reseeding must be done through this instance.Reseeder(RouterContext ctx, ReseedChecker rc)
-
Uses of RouterContext in net.i2p.router.peermanager
Methods in net.i2p.router.peermanager that return RouterContext Modifier and Type Method Description (package private) RouterContext
PeerProfile. getContext()
Helper for calculatorsConstructors in net.i2p.router.peermanager with parameters of type RouterContext Constructor Description DBHistory(RouterContext context, String statGroup)
PeerManager(RouterContext context)
Profiles are now loaded in a separate thread, so this should return quickly.PeerManagerFacadeImpl(RouterContext ctx)
PeerProfile(RouterContext context, Hash peer)
Caller should call setLastHeardAbout() and setFirstHeardAbout()PeerTestJob(RouterContext context)
Creates a new instance of PeerTestJobProfileManagerImpl(RouterContext context)
ProfileOrganizer(RouterContext context)
ProfilePersistenceHelper(RouterContext ctx)
TunnelHistory(RouterContext context, String statGroup)
-
Uses of RouterContext in net.i2p.router.startup
Fields in net.i2p.router.startup declared as RouterContext Modifier and Type Field Description protected RouterContext
LoadClientAppsJob.DelayedRunClient. _ctx
Methods in net.i2p.router.startup with parameters of type RouterContext Modifier and Type Method Description static List<ClientAppConfig>
ClientAppConfig. getClientApps(RouterContext ctx)
(package private) static long
CreateRouterInfoJob. getCurrentPublishDate(RouterContext context)
We probably don't want to expose the exact time at which a router published its info.static EncType
CreateRouterInfoJob. getEncTypeConfig(RouterContext ctx)
The configured EncType to expect on read-instatic SigType
CreateRouterInfoJob. getSigTypeConfig(RouterContext ctx)
The configured SigType to expect on read-instatic void
MigrateJetty. migrate(RouterContext ctx, List<ClientAppConfig> apps)
For each entry in apps, if the main class is an old Jetty class, migrate it to the new Jetty class, and update the Jetty config files.static void
LoadClientAppsJob. runClient(String className, String clientName, String[] args, RouterContext ctx, Log log)
Run client in a new thread.static void
LoadClientAppsJob. runClient(String className, String clientName, String[] args, RouterContext ctx, Log log, ThreadGroup threadGroup, ClassLoader cl)
Run client in a new thread.Constructors in net.i2p.router.startup with parameters of type RouterContext Constructor Description BootCommSystemJob(RouterContext context)
BootNetworkDbJob(RouterContext ctx)
BootPeerManagerJob(RouterContext ctx)
BuildTrustedLinksJob(RouterContext context, Job next)
CreateRouterInfoJob(RouterContext ctx, Job next)
DelayedRunClient(SimpleTimer2 pool, RouterContext enclosingContext, String className, String clientName, String[] args)
caller MUST call schedule()DelayedRunClient(SimpleTimer2 pool, RouterContext enclosingContext, String className, String clientName, String[] args, ThreadGroup threadGroup, ClassLoader cl)
caller MUST call schedule()LoadClientAppsJob(RouterContext ctx)
LoadRouterInfoJob(RouterContext ctx)
RebuildRouterInfoJob(RouterContext context)
RouterAppManager(RouterContext ctx)
StartAcceptingClientsJob(RouterContext context)
StartupJob(RouterContext context)
-
Uses of RouterContext in net.i2p.router.sybil
Methods in net.i2p.router.sybil with parameters of type RouterContext Modifier and Type Method Description static Analysis
Analysis. getInstance(RouterContext ctx)
-
Uses of RouterContext in net.i2p.router.tasks
Methods in net.i2p.router.tasks with parameters of type RouterContext Modifier and Type Method Description static void
BasePerms. fix(RouterContext ctx)
static String
OOMListener. getWrapperConfigPath(RouterContext ctx)
Best guess of wrapper.config path.static void
CryptoChecker. warnUnavailableCrypto(RouterContext ctx)
Constructors in net.i2p.router.tasks with parameters of type RouterContext Constructor Description CoalesceStatsEvent(RouterContext ctx)
GracefulShutdown(RouterContext ctx)
OOMListener(RouterContext ctx)
PersistRouterInfoJob(RouterContext ctx)
ReadConfigJob(RouterContext ctx)
Republish(RouterContext ctx)
Restarter(RouterContext ctx)
RouterWatchdog(RouterContext ctx)
ShutdownHook(RouterContext ctx)
UpdateRoutingKeyModifierJob(RouterContext ctx)
-
Uses of RouterContext in net.i2p.router.transport
Fields in net.i2p.router.transport declared as RouterContext Modifier and Type Field Description protected RouterContext
TransportImpl. _context
Methods in net.i2p.router.transport with parameters of type RouterContext Modifier and Type Method Description (package private) static void
GetBidsJob. fail(RouterContext context, OutNetMessage msg)
(package private) static void
GetBidsJob. getBids(RouterContext context, TransportManager tmgr, OutNetMessage msg)
static TransportUtil.IPv6Config
TransportUtil. getIPv6Config(RouterContext ctx, String transportStyle)
static boolean
TransportUtil. isIPv4Firewalled(RouterContext ctx, String transportStyle)
This returns true if the force-firewalled setting is configured, false otherwise.static boolean
TransportUtil. isIPv6Firewalled(RouterContext ctx, String transportStyle)
This returns true if the force-firewalled setting is configured, false otherwise.static boolean
TransportManager. isNTCPEnabled(RouterContext ctx)
static int
TransportUtil. selectRandomPort(RouterContext ctx, String transportStyle)
Pick a random port between the configured boundariesConstructors in net.i2p.router.transport with parameters of type RouterContext Constructor Description CommSystemFacadeImpl(RouterContext context)
FIFOBandwidthLimiter(RouterContext context)
FIFOBandwidthRefiller(RouterContext context, FIFOBandwidthLimiter limiter)
GetBidsJob(RouterContext ctx, TransportManager tmgr, OutNetMessage msg)
Deprecated.unused, see static getBids()OutboundMessageRegistry(RouterContext context)
TransportImpl(RouterContext context)
Initialize the new transportTransportManager(RouterContext context)
UPnPManager(RouterContext context, TransportManager manager)
-
Uses of RouterContext in net.i2p.router.transport.ntcp
Fields in net.i2p.router.transport.ntcp declared as RouterContext Modifier and Type Field Description protected RouterContext
EstablishBase. _context
Methods in net.i2p.router.transport.ntcp with parameters of type RouterContext Modifier and Type Method Description (package private) static byte[][]
OutboundNTCP2State. generateSipHashKeys(RouterContext ctx, HandshakeState state)
KDF for SipHashConstructors in net.i2p.router.transport.ntcp with parameters of type RouterContext Constructor Description EstablishBase(RouterContext ctx, NTCPTransport transport, NTCPConnection con)
EventPumper(RouterContext ctx, NTCPTransport transport)
InboundEstablishState(RouterContext ctx, NTCPTransport transport, NTCPConnection con)
NTCPConnection(RouterContext ctx, NTCPTransport transport, SocketChannel chan, SelectionKey key)
Create an inbound connected (though not established) NTCP connection.NTCPConnection(RouterContext ctx, NTCPTransport transport, RouterIdentity remotePeer, RouterAddress remAddr, int version)
Create an outbound unconnected NTCP connection.NTCPTransport(RouterContext ctx, DHSessionKeyBuilder.Factory dh, X25519KeyFactory xdh)
OutboundNTCP2State(RouterContext ctx, NTCPTransport transport, NTCPConnection con)
Reader(RouterContext ctx)
Writer(RouterContext ctx)
-
Uses of RouterContext in net.i2p.router.transport.udp
Methods in net.i2p.router.transport.udp with parameters of type RouterContext Modifier and Type Method Description static UDPPacket
UDPPacket. acquire(RouterContext ctx, boolean inbound)
-
Uses of RouterContext in net.i2p.router.tunnel
Fields in net.i2p.router.tunnel declared as RouterContext Modifier and Type Field Description protected RouterContext
FragmentHandler. _context
protected RouterContext
TrivialPreprocessor. _context
protected RouterContext
TunnelCreatorConfig. _context
protected RouterContext
TunnelGateway. _context
Methods in net.i2p.router.tunnel with parameters of type RouterContext Modifier and Type Method Description static int
TunnelDispatcher. getShareBandwidth(RouterContext ctx)
-
Uses of RouterContext in net.i2p.router.tunnel.pool
Fields in net.i2p.router.tunnel.pool declared as RouterContext Modifier and Type Field Description protected RouterContext
TunnelPool. _context
protected RouterContext
ConnectChecker. ctx
Methods in net.i2p.router.tunnel.pool with parameters of type RouterContext Modifier and Type Method Description static void
BuildMessageGenerator. createRecord(int recordNum, int hop, TunnelBuildMessage msg, TunnelCreatorConfig cfg, Hash replyRouter, long replyTunnel, RouterContext ctx, PublicKey peerKey)
Place the asymmetrically encrypted record in the specified record slot, containing the hop's configuration (as well as the reply info, if it is an outbound endpoint)static boolean
BuildRequestor. request(RouterContext ctx, PooledTunnelCreatorConfig cfg, BuildExecutor exec)
Send out a build request message.static boolean
TunnelPeerSelector. shouldExclude(RouterContext ctx, RouterInfo peer)
warning, this is also called by ProfileOrganizer.isSelectable() -
Uses of RouterContext in net.i2p.router.update
Fields in net.i2p.router.update declared as RouterContext Modifier and Type Field Description protected RouterContext
UpdateHandler. _context
protected RouterContext
UpdateRunner. _context
-
Uses of RouterContext in net.i2p.router.util
Fields in net.i2p.router.util declared as RouterContext Modifier and Type Field Description protected RouterContext
RouterPasswordManager. _context
Constructors in net.i2p.router.util with parameters of type RouterContext Constructor Description MaskedIPSet(RouterContext ctx, Hash peer, int mask)
The Set of IPs for this peer, with a given mask.MaskedIPSet(RouterContext ctx, Hash peer, RouterInfo pinfo, int mask)
The Set of IPs for this peer, with a given mask.MaskedIPSet(RouterContext ctx, RouterInfo pinfo, int mask)
The Set of IPs for this peer, with a given mask.RouterPasswordManager(RouterContext ctx)
// migrate these to b64 private static final String[] MIGRATE_FROM = { // This has a separate router.reseedProxy.username prop, // so let's not mess with it "router.reseedProxy.password", // Don't migrate these until we have a console form for them, // which we aren't likely to ever bother with "routerconsole.keyPassword", "routerconsole.keystorePassword", "i2cp.keyPassword", "i2cp.keystorePassword" }; private static final String[] MIGRATE_TO = { "router.reseedProxy.auth", "routerconsole.ssl.key.auth", "routerconsole.ssl.keystore.auth", "i2cp.ssl.key.auth", "i2cp.ssl.keystore.auth" }; -
Uses of RouterContext in net.i2p.router.web
Fields in net.i2p.router.web declared as RouterContext Modifier and Type Field Description protected RouterContext
FormHandler. _context
protected RouterContext
HelperBase. _context
protected RouterContext
PluginStarter. _context
protected RouterContext
UpdateHandler. _context
Methods in net.i2p.router.web that return RouterContext Modifier and Type Method Description static RouterContext
ContextHelper. getContext(String contextId)
Methods in net.i2p.router.web with parameters of type RouterContext Modifier and Type Method Description (package private) static WebAppContext
WebAppStarter. addWebApp(RouterContext ctx, ContextHandlerCollection server, String appName, String warPath, File tmpdir)
add but don't start This is used only by RouterConsoleRunner, which adds all the webapps first and then starts all at once.static boolean
PluginStarter. deletePlugin(RouterContext ctx, String appName)
static boolean
NewsHelper. dontInstall(RouterContext ctx)
(package private) static void
RouterConsoleRunner. initialize(RouterContext ctx, WebAppContext context)
Set up basic security constraints for the webapp.static boolean
NewsHelper. isBaseReadonly(RouterContext ctx)
static boolean
NewsHelper. isDevSU3UpdateAvailable(RouterContext ctx)
Will be false if already downloaded or if dev update disabled.static boolean
PluginStarter. isPluginRunning(String pluginName, RouterContext ctx)
protected static boolean
PluginStarter. isPluginRunning(String pluginName, RouterContext ctx, Server s)
static boolean
NewsHelper. isUnsignedUpdateAvailable(RouterContext ctx)
Will be false if already downloaded or if dev update disabled.static boolean
NewsHelper. isUpdateDisabled(RouterContext ctx)
static long
NewsHelper. lastChecked(RouterContext ctx)
static long
NewsHelper. lastUpdated(RouterContext ctx)
When the news was last downloaded(package private) static void
ConfigServiceHandler. registerSignalHandler(RouterContext ctx)
Register a handler for signals, so we can handle HUP from the wrapper (wrapper 3.2.0 or higher)static void
ConfigServiceHandler. registerWrapperNotifier(RouterContext ctx, int code, boolean rekey)
Register two shutdown hooks, one to rekey and/or tell the wrapper we are stopping, and a final one to tell the wrapper we are stopped.static boolean
NewsHelper. shouldShowNews(RouterContext ctx)
static void
NewsHelper. showNews(RouterContext ctx, boolean yes)
Save config with the timestamp of the current news to hide, or 0 to showstatic boolean
PluginStarter. startPlugin(RouterContext ctx, String appName)
(package private) static void
PluginStarter. startPlugins(RouterContext ctx)
this shouldn't throw anythingstatic void
WebAppStarter. startWebApp(RouterContext ctx, ContextHandlerCollection server, String appName, String warPath)
Adds and starts.static String
NewsHelper. status(RouterContext ctx)
static boolean
PluginStarter. stopPlugin(RouterContext ctx, String appName)
protected static boolean
PluginStarter. stopPlugin(RouterContext ctx, Server s, String appName)
static void
WebAppStarter. stopWebApp(RouterContext ctx, String appName)
Stop it and remove the context.(package private) static void
WebAppStarter. stopWebApp(RouterContext ctx, Server s, String appName)
Stop it and remove the context.static void
RouterConsoleRunner. storeWebAppProperties(RouterContext ctx, Properties props)
static void
PluginStarter. updateAll(RouterContext ctx)
threadedstatic ConsoleUpdateManager
UpdateHandler. updateManager(RouterContext ctx)
Constructors in net.i2p.router.web with parameters of type RouterContext Constructor Description ConsolePasswordManager(RouterContext ctx)
PluginStarter(RouterContext ctx)
PluginStopper(RouterContext ctx, Server server)
RouterConsoleRunner(RouterContext ctx, ClientAppManager mgr, String[] args)
non-SSL: RouterConsoleRunner RouterConsoleRunner 7657 RouterConsoleRunner 7657 127.0.0.1 RouterConsoleRunner 7657 127.0.0.1,::1 RouterConsoleRunner 7657 127.0.0.1,::1 ./webapps/ SSL: RouterConsoleRunner -s 7657 RouterConsoleRunner -s 7657 127.0.0.1 RouterConsoleRunner -s 7657 127.0.0.1,::1 RouterConsoleRunner -s 7657 127.0.0.1,::1 ./webapps/ If using both, non-SSL must be first: RouterConsoleRunner 7657 127.0.0.1 -s 7667 RouterConsoleRunner 7657 127.0.0.1 -s 7667 127.0.0.1 RouterConsoleRunner 7657 127.0.0.1,::1 -s 7667 127.0.0.1,::1 RouterConsoleRunner 7657 127.0.0.1,::1 -s 7667 127.0.0.1,::1 ./webapps/StatSummarizer(RouterContext ctx)
UpdateHandler(RouterContext ctx)
WrapperListener(RouterContext ctx)
Wrapper must be 3.2.0 or higher, or will throw class not found error. -
Uses of RouterContext in net.i2p.router.web.helpers
Methods in net.i2p.router.web.helpers with parameters of type RouterContext Modifier and Type Method Description (package private) static Collection<App>
HomeHelper. buildApps(RouterContext ctx, String config)
static void
SybilRenderer. renderSybilHTML(Writer out, RouterContext ctx, List<Hash> sybils, String victim)
Called from NetDbRenderer(package private) static void
HomeHelper. saveApps(RouterContext ctx, String prop, Collection<App> apps, boolean full)
(package private) static void
SummaryHelper. saveSummaryBarSections(RouterContext ctx, String page, Map<Integer,String> sections)
Constructors in net.i2p.router.web.helpers with parameters of type RouterContext Constructor Description BanlistRenderer(RouterContext context)
NetDbRenderer(RouterContext ctx)
ProfileOrganizerRenderer(ProfileOrganizer organizer, RouterContext context)
ReseedHandler(RouterContext ctx)
StatsGenerator(RouterContext context)
SummaryBarRenderer(RouterContext context, SummaryHelper helper)
SybilRenderer(RouterContext ctx)
TunnelRenderer(RouterContext ctx)
-