java.lang.Object
java.lang.Record
com.renomad.minum.web.PreHandlerInputs
- Record Components:
clientRequest- the rawRequestfrom 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
ConstructorsConstructorDescriptionPreHandlerInputs(IRequest clientRequest, ThrowingFunction<IRequest, IResponse> endpoint, ISocketWrapper sw) Creates an instance of aPreHandlerInputsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientRequestrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sw()Returns the value of theswrecord component.final StringtoString()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 aPreHandlerInputsrecord class.- Parameters:
clientRequest- the value for theclientRequestrecord componentendpoint- the value for theendpointrecord componentsw- the value for theswrecord 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 theclientRequestrecord component.- Returns:
- the value of the
clientRequestrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
sw
Returns the value of theswrecord component.- Returns:
- the value of the
swrecord component
-