Top For Removal Deprecated By Reference
Jakarta EE 11.0.0

Deprecated API


Terminally Deprecated Item Summary

SinceTerminally Deprecated Item and Description
4.1
4.1
jakarta.enterprise.inject.spi.BeanManager.getELResolver()

use ELAwareBeanManager, this method will be removed in CDI 5.0

4.1

Returns:

the wrapped jakarta.el.ExpressionFactory
jakarta.enterprise.inject.spi.BeanManager.wrapExpressionFactory
(ExpressionFactory expressionFactory)

use ELAwareBeanManager, this method will be removed in CDI 5.0

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.1
jakarta.faces.application.StateManager.FULL_STATE_SAVING_VIEW_IDS_PARAM_NAME

Full state saving will be removed in favor of partial state saving in order to keep the spec simple. Therefore specifying full state saving view IDs via this context parameter will not anymore be an option.

4.1
jakarta.faces.application.StateManager.PARTIAL_STATE_SAVING_PARAM_NAME

Full state saving will be removed in favor of partial state saving in order to keep the spec simple. Therefore disabling partial state saving via this context parameter will not anymore be an option.

4.0
4.0
4.1
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.

4.1
jakarta.faces.event.PostConstructCustomScopeEvent

because CustomScope has been removed from Faces in favor of CDI.

4.1
jakarta.faces.event.PreDestroyCustomScopeEvent

because CustomScope has been removed from Faces in favor of CDI.

4.1
4.1
3.2

Returns:

subgraph for the subclass
jakarta.persistence.EntityGraph.addSubclassSubgraph
(Class<? extends T>
entity subclass
type
)

use addTreatedSubgraph(Class)

3.2

Returns:

subgraph for the key attribute
jakarta.persistence.Graph.addKeySubgraph
(Attribute<? super T, X>
attribute
attribute
)

use addMapKeySubgraph(MapAttribute)

3.2

Returns:

subgraph for the attribute
jakarta.persistence.Graph.addKeySubgraph
(Attribute<? super T, X>
attribute
attribute
,
Class<? extends X>
entity subclass
type
)

use addTreatedMapKeySubgraph(MapAttribute, Class)

3.2

Returns:

subgraph for the attribute
jakarta.persistence.Graph.addSubgraph
(Attribute<? super T, X>
attribute
attribute
,
Class<? extends X>
entity subclass
type
)

use addTreatedSubgraph(Attribute, Class)

3.2
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.

3.2
jakarta.persistence.Persistence()

This class is not intended to be extended nor instantiated, it is going to be marked final when this constructor becomes hidden.

3.2
3.2
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
4.0
jakarta.servlet.jsp.ErrorData(Throwable
The Throwable that is the cause of the error
throwable
,
int
The status code of the error
statusCode
,
String
The request URI
uri
,
String
The name of the servlet invoked
servletName
)

Use ErrorData#ErrorData(Throwable, int, String, String, String, String)

jakarta.ws.rs.core.MediaType.APPLICATION_SVG_XML

since 4.0, use a custom string instead. Will be removed in a future release of this API.

jakarta.ws.rs.core.MediaType.APPLICATION_SVG_XML_TYPE

since 4.0, use a custom MediaType instead. Will be removed in a future release of this API.

Deprecated Item Summary

SinceDeprecated Item and Description
com.sun.faces.application.view.ViewScopeContextManager.clear(FacesContext
the Faces context.
facesContext
,
Map<String, Object>
the given view map.
viewMap
)

com.sun.faces.application.view.ViewScopeManager.clear(FacesContext
the Faces context.
facesContext
,
Map<String, Object>
the view map.
viewMap
)

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.faces.application.ApplicationFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.application.ApplicationWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.application.ConfigurableNavigationHandlerWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.application.ResourceHandlerWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.application.ResourceWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.application.ViewHandlerWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.component.visit.VisitContextFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.component.visit.VisitContextWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.ExceptionHandlerFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.ExceptionHandlerWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.ExternalContextFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.ExternalContextWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.FacesContextFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.FacesContextWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.FlashFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.FlashWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.PartialViewContextFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.PartialViewContextWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.context.ResponseWriterWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.flow.FlowHandlerFactoryWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.lifecycle.ClientWindowFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.lifecycle.ClientWindowWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.lifecycle.LifecycleFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.lifecycle.LifecycleWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.render.RenderKitFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.render.RenderKitWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.render.RendererWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.view.ViewDeclarationLanguageFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.view.ViewDeclarationLanguageWrapper()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.view.facelets.FaceletCacheFactory()

Use the other constructor taking the implementation being wrapped.

jakarta.faces.view.facelets.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.

jakarta.mail.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(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
)

3.2
jakarta.persistence.MapKeyTemporal

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.Query.setParameter
(Parameter<Calendar>
parameter object
param
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.Query.setParameter
(Parameter<Date>
parameter object
param
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.Query.setParameter
(String
parameter name
name
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.Query.setParameter
(String
parameter name
name
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.Query.setParameter
(int
position
position
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.Query.setParameter
(int
position
position
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.StoredProcedureQuery.setParameter
(Parameter<Calendar>
parameter object
param
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.StoredProcedureQuery.setParameter
(Parameter<Date>
parameter object
param
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.StoredProcedureQuery.setParameter
(String
parameter name
name
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.StoredProcedureQuery.setParameter
(String
parameter name
name
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.StoredProcedureQuery.setParameter
(int
position
position
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.StoredProcedureQuery.setParameter
(int
position
position
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2
jakarta.persistence.Temporal

Newly-written code should use the date/time types defined in java.time.

3.2
jakarta.persistence.TemporalType

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.TypedQuery.setParameter
(Parameter<Calendar>
parameter object
param
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.TypedQuery.setParameter
(Parameter<Date>
parameter object
param
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.TypedQuery.setParameter
(String
parameter name
name
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.TypedQuery.setParameter
(String
parameter name
name
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.TypedQuery.setParameter
(int
position
position
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the same query instance
jakarta.persistence.TypedQuery.setParameter
(int
position
position
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Newly-written code should use the date/time types defined in java.time.

3.2

Returns:

the modified query
jakarta.persistence.criteria.CriteriaQuery.multiselect
(Selection<?>...
selection items corresponding to the results to be returned by the query
selections
)

Since this method is not typesafe, the use of CriteriaBuilder#array or CriteriaBuilder#tuple with select is strongly preferred.

3.2

Returns:

the modified query
jakarta.persistence.criteria.CriteriaQuery.multiselect
(List<Selection<?>>
list of selection items corresponding to the results to be returned by the query
selectionList
)

Since this method is not typesafe, the use of CriteriaBuilder#array or CriteriaBuilder#tuple with select is strongly preferred.

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.

Returns:

a PushBuilder for issuing server push responses from the current request, or null if push is not supported. Note that some implementations may opt not to support server push and will therefore always return null
jakarta.servlet.http.HttpServletRequest.newPushBuilder
()

In favor of 103 early hints

jakarta.servlet.http.PushBuilder

In favor of 103 early hints

jakarta.websocket.SendResult(Throwable
the exception causing a send failure.
exception
)

Deprecated in WebSocket 2.2 and will be removed in a future version. Use SendResult(Session, Throwable) as a replacement.

jakarta.websocket.SendResult()

Deprecated in WebSocket 2.2 and will be removed in a future version. Use SendResult(Session, Throwable) as a replacement.

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/jakartaee/rest/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/jakartaee/rest/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/jakartaee/rest/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/jakartaee/rest/issues/607

jakarta.ws.rs.core.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(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(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(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(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(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(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(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(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(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.

Deprecated Reference Summary

SinceItem with Deprecated Reference and Description
jakarta.servlet.http.NoBodyResponse.noBody

NoBodyOutputStream is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder.
jakarta.servlet.http.PushBuilder.addHeader
(String
The header name to add
name
,
String
The header value to add
value
)

PushBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder.
jakarta.servlet.http.PushBuilder.method
(String
the method to be used for the push.
method
)

PushBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder.
jakarta.servlet.http.PushBuilder.path
(String
the URI path to be used for the push, which may include a query string.
path
)

PushBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder.
jakarta.servlet.http.PushBuilder.queryString
(String
the query string to be used for the push.
queryString
)

PushBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder.
jakarta.servlet.http.PushBuilder.removeHeader
(String
The name of the header to remove
name
)

PushBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder.
jakarta.servlet.http.PushBuilder.sessionId
(String
the SessionID to be used for the push.
sessionId
)

PushBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

this builder.
jakarta.servlet.http.PushBuilder.setHeader
(String
The header name to set
name
,
String
The header value to set
value
)

PushBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

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

FacesConfig.Version is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.faces.annotation.FacesConfig.Version.JSF_2_3

FacesConfig.Version is deprecated or references (maybe indirectly) at least one deprecated element.

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

FacesConfig.Version is deprecated or references (maybe indirectly) at least one deprecated element.

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

FacesConfig.Version is deprecated or references (maybe indirectly) at least one deprecated element.

com.sun.faces.context.ExternalContextImpl.getPushBuilder(FacesContext context)

PushBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.MapKeyTemporal.value()

TemporalType is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.Temporal.value()

TemporalType is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.TemporalType.DATE

TemporalType is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.TemporalType.TIME

TemporalType is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.TemporalType.TIMESTAMP

TemporalType is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.TemporalType.valueOf(String name)

TemporalType is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.TemporalType.values()

TemporalType is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

transaction type of the entity managers created by the EntityManagerFactory

Note

This method will change its return type to jakarta.persistence.PersistenceUnitTransactionType in the next major version.

jakarta.persistence.spi.PersistenceUnitInfo.getTransactionType
()

PersistenceUnitTransactionType is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.spi.PersistenceUnitTransactionType.JTA

PersistenceUnitTransactionType is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.spi.PersistenceUnitTransactionType.RESOURCE_LOCAL

PersistenceUnitTransactionType is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.spi.PersistenceUnitTransactionType.valueOf(String name)

PersistenceUnitTransactionType is deprecated or references (maybe indirectly) at least one deprecated element.

jakarta.persistence.spi.PersistenceUnitTransactionType.values()

PersistenceUnitTransactionType is deprecated or references (maybe indirectly) at least one deprecated element.