Record Class IdHTTPResponseRedirect
java.lang.Object
java.lang.Record
com.io7m.idstore.server.http.IdHTTPResponseRedirect
- Record Components:
- The cookiespath- The path
- All Implemented Interfaces:
IdHTTPResponseType
public record IdHTTPResponseRedirect(Set<IdHTTPCookieDeclaration> cookies, String path)
extends Record
implements IdHTTPResponseType
A redirect response.
-
Constructor Summary
ConstructorsConstructorDescriptionIdHTTPResponseRedirect(Set<IdHTTPCookieDeclaration> cookies, String path) A redirect response. -
Method Summary
Modifier and TypeMethodDescriptioncookies()Returns the value of thecookiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.intfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdHTTPResponseRedirect
A redirect response.- Parameters:
cookies- The cookiespath- The path
-
-
Method Details
-
statusCode
public int statusCode()- Specified by:
statusCodein interfaceIdHTTPResponseType- Returns:
- The response status code
-
contentLengthOptional
- Specified by:
contentLengthOptionalin interfaceIdHTTPResponseType- Returns:
- The length of the content, if one is known
-
toString
-
hashCode
-
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). -
cookies
Returns the value of thecookiesrecord component.- Specified by:
cookiesin interfaceIdHTTPResponseType- Returns:
- the value of the
cookiesrecord component
-
path
-