Top For Removal Deprecated
EE4J 10.0.0

Deprecated API


Terminally Deprecated Item Summary

SinceTerminally Deprecated Item and Description
5.0

Returns:

null.
jakarta.el.ArrayELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
The array to analyze. Only bases that are a Java language array are handled by this resolver.
base
)

This method will be removed without replacement in EL 6.0

5.0

Returns:

An Iterator containing zero or more FeatureDescriptor objects, each representing a property on this bean, or null if the base object is null.
jakarta.el.BeanELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
The bean to analyze.
base
)

This method will be removed without replacement in EL 6.0

5.0

Returns:

null.
jakarta.el.BeanNameELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
null.
base
)

This method will be removed without replacement in EL 6.0

5.0
jakarta.el.CompositeELResolver.CompositeIterator

This method will be removed without replacement in EL 6.0

5.0

Returns:

An Iterator containing zero or more (possibly infinitely more) FeatureDescriptor objects, or null if this resolver does not handle the given base object or that the results are too complex to represent with this method
jakarta.el.CompositeELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
The base object whose set of valid properties is to be enumerated, or null to enumerate the set of top-level variables that this resolver can evaluate.
base
)

This method will be removed with replacement in EL 6.0

5.0

Returns:

An Iterator containing zero or more (possibly infinitely more) FeatureDescriptor objects, or null if this resolver does not handle the given base object or that the results are too complex to represent with this method
jakarta.el.ELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
The base object whose set of valid properties is to be enumerated, or null to enumerate the set of top-level variables that this resolver can evaluate.
base
)

This method will be removed without replacement in EL 6.0

5.0

Returns:

null.
jakarta.el.ListELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
The list. Only bases of type List are handled by this resolver.
base
)

This method will be removed without replacement in EL 6.0

5.0

Returns:

An Iterator containing zero or more (possibly infinitely more) FeatureDescriptor objects, each representing a key in this map, or null if the base object is not a map.
jakarta.el.MapELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
The map whose keys are to be iterated over. Only bases of type Map are handled by this resolver.
base
)

This method will be removed without replacement in EL 6.0

5.0

Returns:

An Iterator containing zero or more (possibly infinitely more) FeatureDescriptor objects, each representing a key in this bundle, or null if the base object is not a ResourceBundle.
jakarta.el.ResourceBundleELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
The bundle whose keys are to be iterated over. Only bases of type ResourceBundle are handled by this resolver.
base
)

This method will be removed without replacement in EL 6.0

5.0

Returns:

null.
jakarta.el.StaticFieldELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
An ELClass.
base
)

This method will be removed without replacement in EL 6.0

5.0
jakarta.el.TypeConverter.getFeatureDescriptors(ELContext
The context of this evaluation.
context
,
Object
The base object whose set of valid properties is to be enumerated, or null to enumerate the set of top-level variables that this resolver can evaluate.
base
)

4.0
jakarta.faces.annotation.FacesConfig.Version

It has no effect anymore as per Jakarta Faces version 4.0; the actual impl version should be leading.

4.0

Returns:

the spec version for which the features must be enabled.
jakarta.faces.annotation.FacesConfig.version
()

It has no effect anymore as per Jakarta Faces version 4.0; the actual impl version should be leading.

4.0
4.0
4.0
4.0
4.0
4.0
4.0
4.0
4.0
4.0

Returns:

the value of the property
jakarta.faces.component.html.HtmlInputFile.getAlt
()

This attribute is actually not specified in HTML. Do not use it on this component.

4.0

Returns:

the value of the property
jakarta.faces.component.html.HtmlInputFile.getAutocomplete
()

This attribute is actually not specified in HTML. Do not use it on this component.

4.0

Returns:

the value of the property
jakarta.faces.component.html.HtmlInputFile.getMaxlength
()

This attribute is actually not specified in HTML. Do not use it on this component.

4.0

Returns:

the value of the property
jakarta.faces.component.html.HtmlInputFile.getSize
()

This attribute is actually not specified in HTML. Do not use it on this component.

4.0

Returns:

the value of the property
jakarta.faces.component.html.HtmlInputFile.isReadonly
()

This attribute is actually not specified in HTML. Do not use it on this component.

4.0
jakarta.faces.component.html.HtmlInputFile.setAlt(String
the new property value
alt
)

This attribute is actually not specified in HTML. Do not use it on this component.

4.0
jakarta.faces.component.html.HtmlInputFile.setAutocomplete(String
the new property value
autocomplete
)

This attribute is actually not specified in HTML. Do not use it on this component.

4.0
jakarta.faces.component.html.HtmlInputFile.setMaxlength(int
the new property value
maxlength
)

This attribute is actually not specified in HTML. Do not use it on this component.

4.0
jakarta.faces.component.html.HtmlInputFile.setReadonly(boolean
the new property value
readonly
)

This attribute is actually not specified in HTML. Do not use it on this component.

4.0
jakarta.faces.component.html.HtmlInputFile.setSize(int
the new property value
size
)

This attribute is actually not specified in HTML. Do not use it on this component.

4.0
4.0

Returns:

the property value

Contents: Alternate textual description of the element rendered by this component.

jakarta.faces.component.html.HtmlInputSecret.getAlt
()

This attribute is actually not specified in HTML. Do not use it on this component.

4.0
jakarta.faces.component.html.HtmlInputSecret.setAlt(String
the new property value
alt
)

This attribute is actually not specified in HTML. Do not use it on this component.

Servlet 6.0

Returns:

Always null
jakarta.servlet.SessionCookieConfig.getComment
()

This is no longer required with RFC 6265

Servlet 6.0
jakarta.servlet.SessionCookieConfig.setComment(String
ignore
comment
)

This is no longer required with RFC 6265

Servlet 6.0

Returns:

Always null
jakarta.servlet.http.Cookie.getComment
()

This is no longer required with RFC 6265

Servlet 6.0

Returns:

Always 0
jakarta.servlet.http.Cookie.getVersion
()

This is no longer required with RFC 6265

Servlet 6.0
jakarta.servlet.http.Cookie.setComment(String
This parameter is ignored
purpose
)

This is no longer required with RFC 6265

Servlet 6.0
jakarta.servlet.http.Cookie.setVersion(int
This parameter is ignored
v
)

This is no longer required with RFC 6265

Servlet 6.0
jakarta.servlet.http.HttpServlet.LEGACY_DO_HEAD

may be removed in future releases

Servlet 6.0
Servlet 6.0
JSP 3.1

Returns:

An Iterator containing one FeatureDescriptor object for each implicit object, or null if base is not null.
jakarta.servlet.jsp.el.ImplicitObjectELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
Only null is handled by this resolver. Other values will result in a null return value.
base
)

This method is deprecated as of EL 5.0 and will be removed in EL 6.0 (Jakarta EE 11). Therefore it will be removed here in JSP 4.0.

JSP 3.1

Returns:

An Iterator containing one FeatureDescriptor object for each scoped attribute, or null if base is not null.
jakarta.servlet.jsp.el.ScopedAttributeELResolver.getFeatureDescriptors
(ELContext
The context of this evaluation.
context
,
Object
Only null is handled by this resolver. Other values will result in a null return value.
base
)

This method is deprecated as of EL 5.0 and will be removed in EL 6.0 (Jakarta EE 11). Therefore it will be removed here in JSP 4.0.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

true if the String (MimeType) is equal; false otherwise or if s is null
jakarta.activation.ActivationDataFlavor.equals
(String
the mimeType to compare.
s
)

As inconsistent with hashCode() contract, use isMimeTypeEqual(String) instead.

Returns:

the normalized MIME type
jakarta.activation.ActivationDataFlavor.normalizeMimeType
(String
the MIME type
mimeType
)

Returns:

the normalized parameter value
jakarta.activation.ActivationDataFlavor.normalizeMimeTypeParameter
(String
the parameter name
parameterName
,
String
the parameter value
parameterValue
)

jakarta.annotation.ManagedBean

This will be removed post Jakarta EE 10 and should be replaced with CDI beans

jakarta.faces.annotation.FacesConfig.Literal.version()

Deprecated as a consequence of FacesConfig.Version being deprecated. See corresponding docs for further information.

jakarta.faces.annotation.FacesConfig.Version.JSF_2_3

Deprecated as a consequence of FacesConfig.Version being deprecated. See corresponding docs for further information.

jakarta.faces.annotation.FacesConfig.Version.valueOf(String name)

Deprecated as a consequence of FacesConfig.Version being deprecated. See corresponding docs for further information.

jakarta.faces.annotation.FacesConfig.Version.values()

Deprecated as a consequence of FacesConfig.Version being deprecated. See corresponding docs for further information.

jakarta.faces.application.ApplicationFactory.ApplicationFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.application.ApplicationWrapper.ApplicationWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.application.ConfigurableNavigationHandlerWrapper.ConfigurableNavigationHandlerWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.application.ResourceHandlerWrapper.ResourceHandlerWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.application.ResourceWrapper.ResourceWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.application.ViewHandlerWrapper.ViewHandlerWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.component.visit.VisitContextFactory.VisitContextFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.component.visit.VisitContextWrapper.VisitContextWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.ExceptionHandlerFactory.ExceptionHandlerFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.ExceptionHandlerWrapper.ExceptionHandlerWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.ExternalContextFactory.ExternalContextFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.ExternalContextWrapper.ExternalContextWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.FacesContextFactory.FacesContextFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.FacesContextWrapper.FacesContextWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.FlashFactory.FlashFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.FlashWrapper.FlashWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.PartialViewContextFactory.PartialViewContextFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.PartialViewContextWrapper.PartialViewContextWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.ResponseWriterWrapper.ResponseWriterWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.flow.FlowHandlerFactoryWrapper.FlowHandlerFactoryWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.lifecycle.ClientWindowFactory.ClientWindowFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.lifecycle.ClientWindowWrapper.ClientWindowWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.lifecycle.LifecycleFactory.LifecycleFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.lifecycle.LifecycleWrapper.LifecycleWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.render.RenderKitFactory.RenderKitFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.render.RenderKitWrapper.RenderKitWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.render.RendererWrapper.RendererWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.view.ViewDeclarationLanguageFactory.ViewDeclarationLanguageFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.view.ViewDeclarationLanguageWrapper.ViewDeclarationLanguageWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.view.facelets.FaceletCacheFactory.FaceletCacheFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.view.facelets.TagHandlerDelegateFactory.TagHandlerDelegateFactory()

Use the other constructor taking the implementation being wrapped.

2.1

Returns:

True if field with null value should be serialized as key/value pair into JSON with null value.
jakarta.json.bind.annotation.JsonbProperty.nillable
()

Please use JsonbNillable as another annotation instead. This option will be removed in the future.

Returns:

the handler chain
jakarta.jws.HandlerChain.name
()

As of JSR-181 2.0 with no replacement.

Returns:

the array of name/value pairs that should be passed to the handler during initialization
jakarta.jws.soap.SOAPMessageHandler.initParams
()

Deprecated as a consequence of InitParam being deprecated. See corresponding docs for further information.

jakarta.jws.soap.SOAPMessageHandlers

As of JSR-181 2.0 with no replacement.

jakarta.jws.soap.SOAPMessageHandlers.value()

Deprecated as a consequence of SOAPMessageHandler being deprecated. See corresponding docs for further information.

jakarta.mail.MailLogger.MailLogger(String
the Logger name
name
,
String
the prefix for debug output, or null for none
prefix
,
Session
where to get the debug flag and PrintStream
session
)

jakarta.mail.MailLogger.MailLogger(Class<?>
the Logger name is the package name of this class
clazz
,
String
the prefix for debug output, or null for none
prefix
,
Session
where to get the debug flag and PrintStream
session
)

jakarta.persistence.Persistence.PERSISTENCE_PROVIDER

TODO: Either change TCK reference to PERSISTENCE_PROVIDER field to expect "jakarta.persistence.spi.PersistenceProvider" or remove PERSISTENCE_PROVIDER field and also update TCK signature tests.

Returns:

linked Exception, null if none
jakarta.resource.ResourceException.getLinkedException
()

J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer to getCause and initCause methods of the java.lang.Throwable class..

jakarta.resource.ResourceException.setLinkedException(Exception
linked Exception
ex
)

J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer to getCause and initCause methods of the java.lang.Throwable class.

Returns:

next ResourceWarning in the chain; null if none.
jakarta.resource.cci.ResourceWarning.getLinkedWarning
()

Java™ release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer to getCause and initCause methods of the java.lang.Throwable class.

jakarta.resource.cci.ResourceWarning.setLinkedWarning(ResourceWarning
ResourceWarning to be added to the chain.
warning
)

J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer to getCause and initCause methods of the java.lang.Throwable class.

jakarta.resource.spi.security.GenericCredential

The preferred way to represent generic credential information is via the org.ietf.jgss.GSSCredential interface in J2SE Version 1.4, which provides similar functionality.

jakarta.servlet.http.NoBodyResponse.noBody

Deprecated as a consequence of NoBodyOutputStream being deprecated. See corresponding docs for further information.

Returns:

A valid instance of an ExpressionEvaluator.
jakarta.servlet.jsp.JspContext.getExpressionEvaluator
()

As of JSP 2.1, replaced by JspApplicationContext#getExpressionFactory

Returns:

A valid instance of a VariableResolver.
jakarta.servlet.jsp.JspContext.getVariableResolver
()

As of JSP 2.1, replaced by ELContext#getELResolver, which can be obtained by jspContext.getELContext().getELResolver().

Returns:

the Throwable that caused this JSP exception
jakarta.servlet.jsp.JspException.getRootCause
()

As of JSP 2.1, replaced by getCause()

Returns:

The result of the expression evaluation.
jakarta.servlet.jsp.el.Expression.evaluate
(VariableResolver
A VariableResolver instance that can be used at runtime to resolve the name of implicit objects into Objects.
vResolver
)

Deprecated as a consequence of VariableResolver being deprecated. See corresponding docs for further information.

Returns:

The result of the expression evaluation.
jakarta.servlet.jsp.el.ExpressionEvaluator.evaluate
(String
The expression to be evaluated.
expression
,
Class<?>
The expected type of the result of the evaluation
expectedType
,
VariableResolver
A VariableResolver instance that can be used at runtime to resolve the name of implicit objects into Objects.
vResolver
,
FunctionMapper
A FunctionMapper to resolve functions found in the expression. It can be null, in which case no functions are supported for this invocation.
fMapper
)

Deprecated as a consequence of VariableResolver and FunctionMapper being deprecated. See corresponding docs for further information.

Returns:

The Expression object encapsulating the arguments.
jakarta.servlet.jsp.el.ExpressionEvaluator.parseExpression
(String
The expression to be evaluated.
expression
,
Class<?>
The expected type of the result of the evaluation
expectedType
,
FunctionMapper
A FunctionMapper to resolve functions found in the expression. It can be null, in which case no functions are supported for this invocation. The ExpressionEvaluator must not hold on to the FunctionMapper reference after returning from parseExpression(). The Expression object returned must invoke the same functions regardless of whether the mappings in the provided FunctionMapper instance change between calling ExpressionEvaluator.parseExpression() and Expression.evaluate().
fMapper
)

Deprecated as a consequence of FunctionMapper and Expression being deprecated. See corresponding docs for further information.

jakarta.servlet.jsp.tagext.BodyTag.EVAL_BODY_TAG

As of Java JSP API 1.2, use BodyTag.EVAL_BODY_BUFFERED or IterationTag.EVAL_BODY_AGAIN.

Returns:

a set of root resource and provider instances. Returning null is equivalent to returning an empty set.
jakarta.ws.rs.core.Application.getSingletons
()

Automatic discovery of resources and providers or the getClasses method is preferred over getSingletons.

jakarta.ws.rs.core.CacheControl.HEADER_DELEGATE

This field will be removed in a future version. See https://github.com/eclipse-ee4j/jaxrs-api/issues/607

Returns:

a stringified cache control
jakarta.ws.rs.core.CacheControl.toString
()

The format of the toString() method is subject to change in a future version. Please use RuntimeDelegate.getInstance().createHeaderDelegate(CacheControl.class).toString(value) instead if you rely on the format of this method.

Returns:

the newly created CacheControl
jakarta.ws.rs.core.CacheControl.valueOf
(final String
the cache control string
value
)

This method will be removed in a future version. Please use RuntimeDelegate.getInstance().createHeaderDelegate(CacheControl.class).fromString(value) instead.

jakarta.ws.rs.core.Cookie.HEADER_DELEGATE

This field will be removed in a future version. See https://github.com/eclipse-ee4j/jaxrs-api/issues/607

Returns:

a stringified cookie.
jakarta.ws.rs.core.Cookie.toString
()

The format of the toString() method is subject to change in a future version. Please use RuntimeDelegate.getInstance().createHeaderDelegate(Cookie.class).toString(value) instead if you rely on the format of this method.

Returns:

the newly created Cookie.
jakarta.ws.rs.core.Cookie.valueOf
(final String
the cookie string.
value
)

This method will be removed in a future version. Please use RuntimeDelegate.getInstance().createHeaderDelegate(Cookie.class).fromString(value) instead.

jakarta.ws.rs.core.EntityTag.HEADER_DELEGATE

This field will be removed in a future version. See https://github.com/eclipse-ee4j/jaxrs-api/issues/607

Returns:

a string version of the entity tag.
jakarta.ws.rs.core.EntityTag.toString
()

The format of the toString() method is subject to change in a future version. Please use RuntimeDelegate.getInstance().createHeaderDelegate(EntityTag.class).toString(value) instead if you rely on the format of this method.

Returns:

the newly created entity tag.
jakarta.ws.rs.core.EntityTag.valueOf
(final String
the entity tag string.
value
)

This method will be removed in a future version. Please use RuntimeDelegate.getInstance().createHeaderDelegate(EntityTag.class).fromString(value) instead.

jakarta.ws.rs.core.NewCookie.DELEGATE

This field will be removed in a future version. See https://github.com/eclipse-ee4j/jaxrs-api/issues/607

jakarta.ws.rs.core.NewCookie.NewCookie(final String
the name of the cookie.
name
,
final String
the value of the cookie.
value
)

This constructor will be removed in a future version. Please use NewCookie.Builder instead.

jakarta.ws.rs.core.NewCookie.NewCookie(final String
the name of the cookie.
name
,
final String
the value of the cookie.
value
,
final String
the URI path for which the cookie is valid.
path
,
final String
the host domain for which the cookie is valid.
domain
,
final String
the comment.
comment
,
final int
the maximum age of the cookie in seconds.
maxAge
,
final boolean
specifies whether the cookie will only be sent over a secure connection.
secure
)

This constructor will be removed in a future version. Please use NewCookie.Builder instead.

jakarta.ws.rs.core.NewCookie.NewCookie(final String
the name of the cookie.
name
,
final String
the value of the cookie.
value
,
final String
the URI path for which the cookie is valid.
path
,
final String
the host domain for which the cookie is valid.
domain
,
final String
the comment.
comment
,
final int
the maximum age of the cookie in seconds.
maxAge
,
final boolean
specifies whether the cookie will only be sent over a secure connection.
secure
,
final boolean
if true make the cookie HTTP only, i.e. only visible as part of an HTTP request.
httpOnly
)

This constructor will be removed in a future version. Please use NewCookie.Builder instead.

jakarta.ws.rs.core.NewCookie.NewCookie(final String
the name of the cookie
name
,
final String
the value of the cookie
value
,
final String
the URI path for which the cookie is valid
path
,
final String
the host domain for which the cookie is valid
domain
,
final int
the version of the specification to which the cookie complies
version
,
final String
the comment
comment
,
final int
the maximum age of the cookie in seconds
maxAge
,
final boolean
specifies whether the cookie will only be sent over a secure connection
secure
)

This constructor will be removed in a future version. Please use NewCookie.Builder instead.

jakarta.ws.rs.core.NewCookie.NewCookie(final String
the name of the cookie
name
,
final String
the value of the cookie
value
,
final String
the URI path for which the cookie is valid
path
,
final String
the host domain for which the cookie is valid
domain
,
final int
the version of the specification to which the cookie complies
version
,
final String
the comment
comment
,
final int
the maximum age of the cookie in seconds
maxAge
,
final Date
the cookie expiry date.
expiry
,
final boolean
specifies whether the cookie will only be sent over a secure connection
secure
,
final boolean
if true make the cookie HTTP only, i.e. only visible as part of an HTTP request.
httpOnly
)

This constructor will be removed in a future version. Please use NewCookie.Builder instead.

jakarta.ws.rs.core.NewCookie.NewCookie(final String
the name of the cookie
name
,
final String
the value of the cookie
value
,
final String
the URI path for which the cookie is valid
path
,
final String
the host domain for which the cookie is valid
domain
,
final int
the version of the specification to which the cookie complies
version
,
final String
the comment
comment
,
final int
the maximum age of the cookie in seconds
maxAge
,
final Date
the cookie expiry date.
expiry
,
final boolean
specifies whether the cookie will only be sent over a secure connection
secure
,
final boolean
if true make the cookie HTTP only, i.e. only visible as part of an HTTP request.
httpOnly
,
final NewCookie.SameSite
specifies the value of the SameSite cookie attribute
sameSite
)

This constructor will be removed in a future version. Please use NewCookie.Builder instead.

jakarta.ws.rs.core.NewCookie.NewCookie(final Cookie
the cookie to clone.
cookie
)

This constructor will be removed in a future version. Please use NewCookie.Builder instead.

jakarta.ws.rs.core.NewCookie.NewCookie(final Cookie
the cookie to clone.
cookie
,
final String
the comment.
comment
,
final int
the maximum age of the cookie in seconds.
maxAge
,
final boolean
specifies whether the cookie will only be sent over a secure connection.
secure
)

This constructor will be removed in a future version. Please use NewCookie.Builder instead.

jakarta.ws.rs.core.NewCookie.NewCookie(final Cookie
the cookie to clone.
cookie
,
final String
the comment.
comment
,
final int
the maximum age of the cookie in seconds.
maxAge
,
final Date
the cookie expiry date.
expiry
,
final boolean
specifies whether the cookie will only be sent over a secure connection.
secure
,
final boolean
if true make the cookie HTTP only, i.e. only visible as part of an HTTP request.
httpOnly
)

This constructor will be removed in a future version. Please use NewCookie.Builder instead.

jakarta.ws.rs.core.NewCookie.NewCookie(final Cookie
the cookie to clone.
cookie
,
final String
the comment.
comment
,
final int
the maximum age of the cookie in seconds.
maxAge
,
final Date
the cookie expiry date.
expiry
,
final boolean
specifies whether the cookie will only be sent over a secure connection.
secure
,
final boolean
if true make the cookie HTTP only, i.e. only visible as part of an HTTP request.
httpOnly
,
final NewCookie.SameSite
specifies the value of the SameSite cookie attribute
sameSite
)

This constructor will be removed in a future version. Please use NewCookie.Builder instead.

Returns:

a stringified cookie.
jakarta.ws.rs.core.NewCookie.toString
()

The format of the toString() method is subject to change in a future version. Please use RuntimeDelegate.getInstance().createHeaderDelegate(NewCookie.class).toString(value) instead if you rely on the format of this method.

Returns:

the newly created NewCookie.
jakarta.ws.rs.core.NewCookie.valueOf
(final String
the cookie string.
value
)

This method will be removed in a future version. Please use RuntimeDelegate.getInstance().createHeaderDelegate(NewCookie.class).fromString(value) instead.