java.lang.Object
java.lang.Record
com.renomad.minum.web.PreHandlerInputs
- Record Components:
clientRequest
- the rawRequest
from the userendpoint
- the endpoint that was properly chosen for the combination of path and verb.
public record PreHandlerInputs(IRequest clientRequest, ThrowingFunction<IRequest,IResponse> endpoint, ISocketWrapper sw)
extends Record
The input parameters that are required to add a pre-handler. See
WebFramework.registerPreHandler(ThrowingFunction)
-
Constructor Summary
ConstructorDescriptionPreHandlerInputs
(IRequest clientRequest, ThrowingFunction<IRequest, IResponse> endpoint, ISocketWrapper sw) Creates an instance of aPreHandlerInputs
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientRequest
record component.endpoint()
Returns the value of theendpoint
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.sw()
Returns the value of thesw
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PreHandlerInputs
public PreHandlerInputs(IRequest clientRequest, ThrowingFunction<IRequest, IResponse> endpoint, ISocketWrapper sw) Creates an instance of aPreHandlerInputs
record class.- Parameters:
clientRequest
- the value for theclientRequest
record componentendpoint
- the value for theendpoint
record componentsw
- the value for thesw
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
clientRequest
Returns the value of theclientRequest
record component.- Returns:
- the value of the
clientRequest
record component
-
endpoint
Returns the value of theendpoint
record component.- Returns:
- the value of the
endpoint
record component
-
sw
Returns the value of thesw
record component.- Returns:
- the value of the
sw
record component
-