Class BootstrapMessage (0.8.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicabstractclass BootstrapMessageextendsWireMessageThis represents all messages which occur before ControlMessage type messages. Those include encryption, admin (e.g.: cancellation) and start-up messages.
Inherited Members
Static Methods
create(ConnectionHandler connection)
publicstaticBootstrapMessagecreate(ConnectionHandlerconnection)Factory method to create the bootstrap message from their designated format. Note this is backwards from control messages where identifier is first and length second.
The constructed wire message given the input message.
If construction or reading fails.
sendStartupMessage(DataOutputStream output, int connectionId, int secret, SessionState sessionState)
publicstaticvoidsendStartupMessage(DataOutputStreamoutput,intconnectionId,intsecret,SessionStatesessionState)Expected PG start-up reply, including Auth approval, Key Data connection-specific info, PGAdapter specific parameters, and a ready signal.
Constructors
BootstrapMessage(ConnectionHandler connection, int length)
publicBootstrapMessage(ConnectionHandlerconnection,intlength)Methods
parseParameterKeys(String rawParameters)
protectedList<String>parseParameterKeys(StringrawParameters)Parses the parameter keys from the given raw parameter string and returns these in the received order. This can be used to detect the client that is connecting to PGAdapter.
parseParameters(String rawParameters)
protectedMap<String,String>parseParameters(StringrawParameters)Parses parameters specific to bootstrap messages. Those generally (unlike control parameters) exclude metadata including length and are simple null (0) delimited.