@SipServlet
@Target(value=TYPE)
@Retention(value=RUNTIME)
@Inherited
public @interface SipServlet
The @SipServlet annotation simplifies the declaration of SIP servlet metadata by embedding it directly into the code, removing the need for a deployment descriptor.
Optional Elements:
name
public abstract java.lang.String name
Specifies the name of the SIP servlet. This name is used to identify the servlet within the application and can be referenced in logs or configurations.
Default Value: "" (empty string)
applicationName
public abstract java.lang.String applicationName
Indicates the name of the SIP application to which this servlet belongs. This allows the servlet to be associated with a specific application in deployments with multiple SIP applications.
Default Value: "" (empty string)
description
public abstract java.lang.String description
Provides a human-readable description of the servlet. Useful for documentation or administrative purposes.
Default Value: "" (empty string)
loadOnStartup
public abstract int loadOnStartup
Specifies the load order of the servlet during application startup.
A positive value indicates that the servlet should be loaded during startup, and the order is determined by the numerical value (lower numbers load first). A value of -1 (default) indicates that the servlet should not be loaded at startup.
Default Value: -1
Start innovating with Mobius
What's next? Let's talk!