Package org.jvnet.hudson.test.jetty
Record Class JettyProvider.Context
java.lang.Object
java.lang.Record
org.jvnet.hudson.test.jetty.JettyProvider.Context
- Enclosing class:
- JettyProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexplodedWarDir
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thelocalPort
record component.org.eclipse.jetty.server.Server
server()
Returns the value of theserver
record component.jakarta.servlet.ServletContext
Returns the value of theservletContext
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Context
public Context(jakarta.servlet.ServletContext servletContext, int localPort, org.eclipse.jetty.server.Server server, File explodedWarDir) Creates an instance of aContext
record class.- Parameters:
servletContext
- the value for theservletContext
record componentlocalPort
- the value for thelocalPort
record componentserver
- the value for theserver
record componentexplodedWarDir
- the value for theexplodedWarDir
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
servletContext
public jakarta.servlet.ServletContext servletContext()Returns the value of theservletContext
record component.- Returns:
- the value of the
servletContext
record component
-
localPort
public int localPort()Returns the value of thelocalPort
record component.- Returns:
- the value of the
localPort
record component
-
server
public org.eclipse.jetty.server.Server server()Returns the value of theserver
record component.- Returns:
- the value of the
server
record component
-
explodedWarDir
Returns the value of theexplodedWarDir
record component.- Returns:
- the value of the
explodedWarDir
record component
-