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 booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplodedWarDirrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelocalPortrecord component.org.eclipse.jetty.server.Serverserver()Returns the value of theserverrecord component.jakarta.servlet.ServletContextReturns the value of theservletContextrecord component.final StringtoString()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 aContextrecord class.- Parameters:
servletContext- the value for theservletContextrecord componentlocalPort- the value for thelocalPortrecord componentserver- the value for theserverrecord componentexplodedWarDir- the value for theexplodedWarDirrecord 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 theservletContextrecord component.- Returns:
- the value of the
servletContextrecord component
-
localPort
public int localPort()Returns the value of thelocalPortrecord component.- Returns:
- the value of the
localPortrecord component
-
server
public org.eclipse.jetty.server.Server server()Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-
explodedWarDir
Returns the value of theexplodedWarDirrecord component.- Returns:
- the value of the
explodedWarDirrecord component
-