public interface SipServletContext
extends javax.servlet.ServletContext
ServletContext
object to the Servlet.ServletContext| Modifier and Type | Method and Description |
|---|---|
javax.servlet.ServletRegistration.Dynamic |
addServletPOJO(String servletName,
Class<?> servletClass)
Adds the servlet POJO with the given name and class type to this servlet context.
|
javax.servlet.ServletRegistration.Dynamic |
addServletPOJO(String servletName,
Object servlet)
Registers the given servlet instance with this
ServletContext
under the given servletName. |
void |
assignWebSocketSipIdentity(javax.servlet.http.HttpServletRequest httpRequest,
String sipIdentity)
Once a user is authenticated, assign a SIP identity for that
HttpServletRequest. |
<T> T |
createServletPOJO(Class<T> clazz)
Instantiates the given Servlet POJO class.
|
DnsResolver |
getDnsResolver()
Gets an instance of
DnsResolver class. |
Flow |
getFlow(String flowToken)
Returns the flow represented by the flow token.
|
List<InetAddress> |
getOutboundAddresses()
An immutable instance of the
java.util.List
interface containing the InetAddress representation of
IP addresses which are used by the container to send
out the messages |
List<SipURI> |
getOutboundInterfaces()
An immutable instance of the
java.util.List
interface containing the SipURI representation of
IP addresses which are used by the container to send
out the messages |
SipApplicationConfiguration |
getSipApplicationConfiguration()
Returns the
SipApplicationConfiguration object that represents the
application configuration. |
SipFactory |
getSipFactory()
Gets an instance of application's
SipFactory |
SipSessionsUtil |
getSipSessionsUtil()
Gets an instance of
SipSessionsUtil for
executing session related utility functions like lookup of
SipApplicationSession instances. |
SipWebSocketContext |
getSipWebSocketContext(String flowToken)
Retrieve the
SipWebSocketContext that the flow token represents. |
List<String> |
getSupported()
An immutable instance of the
java.util.List
interface containing the String names of SIP
extensions supported by the container |
List<String> |
getSupportedRfcs()
An immutable instance of the java.util.List
interface containing the RFC numbers represented as
Strings of SIP RFCs supported by the container.
|
TimerService |
getTimerService()
Gets an instance of
TimerService class. |
addFilter, addFilter, addFilter, addListener, addListener, addListener, addServlet, addServlet, addServlet, createFilter, createListener, createServlet, declareRoles, getAttribute, getAttributeNames, getClassLoader, getContext, getContextPath, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getInitParameter, getInitParameterNames, getJspConfigDescriptor, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, log, log, log, removeAttribute, setAttribute, setInitParameter, setSessionTrackingModesList<String> getSupported()
java.util.List
interface containing the String names of SIP
extensions supported by the containerList of SIP extensions.List<String> getSupportedRfcs()
List of supported rfcs.List<SipURI> getOutboundInterfaces()
java.util.List
interface containing the SipURI representation of
IP addresses which are used by the container to send
out the messagesList of outbound interfaces.List<InetAddress> getOutboundAddresses()
java.util.List
interface containing the InetAddress representation of
IP addresses which are used by the container to send
out the messagesList of outbound addresses.SipFactory getSipFactory()
SipFactorySipFactorySipSessionsUtil getSipSessionsUtil()
SipSessionsUtil for
executing session related utility functions like lookup of
SipApplicationSession instances.SipSessionsUtilTimerService getTimerService()
TimerService class.TimerService class.DnsResolver getDnsResolver()
DnsResolver class.DnsResolver class.javax.servlet.ServletRegistration.Dynamic addServletPOJO(String servletName, Object servlet)
ServletContext
under the given servletName. The registered servlet may be
further configured via the returned ServletRegistration object.
If this ServletContext already
contains a preliminary ServletRegistration for a servlet with the
given servletName, it will be completed (by assigning the name of
the given servletClass to it) and returned.servletName - the name of the servletservlet - the servlet POJO instance to registerServletRegistration object that may be used to further
configure the given servlet, or null if this ServletContext already
contains a complete ServletRegistration for a servlet with the given
servletName or if the same servlet instance has already been registered with
this or another ServletContext in the same container{@code - IllegalStateException} if this ServletContext has already been
initializedjavax.servlet.ServletRegistration.Dynamic addServletPOJO(String servletName, Class<?> servletClass)
ServletRegistration object. If this ServletContext already
contains a preliminary ServletRegistration for a servlet with the
given servletName, it will be completed (by assigning the name of the given
servletClass to it) and returned.
This method introspects the given class for the annotations except
SipServlet
In addition, this method supports resource injection if the
given clazz represents a Managed Bean. See the SIP servlet specification
for the dependency injection requirements.servletName - the name of the servlet POJO.servletClass - the class object from which the servlet will be instantiated.ServletRegistration object that may be used to further configure the
registered servlet, or null if this ServletContext already contains a complete
ServletRegistration for the given servletName{@code - IllegalStateException} if this ServletContext has already been
initialized<T> T createServletPOJO(Class<T> clazz) throws javax.servlet.ServletException
ServletContext via a call to
addServletPOJO(String,Object).
The given Servlet POJO class must define a zero argument constructor,
which is used to instantiate it.
This method introspects the given
clazz for the annotations except SipServlet
In addition, this method supports resource injection if the
given clazz represents a Managed Bean. See the SIP servlet specification
for the dependency injection requirements.clazz - the Servlet POJO class to instantiatejavax.servlet.ServletException - if the given clazz fails to be instantiatedSipApplicationConfiguration getSipApplicationConfiguration()
SipApplicationConfiguration object that represents the
application configuration. It may be used by the application to further
configure the application.SipApplicationConfiguration instance.SipApplicationConfigurationFlow getFlow(String flowToken)
Flow object from the container.Flow represented by the flow token. Null, if there is
no usable flow represented by the flow token exist.Flowvoid assignWebSocketSipIdentity(javax.servlet.http.HttpServletRequest httpRequest,
String sipIdentity)
HttpServletRequest.
If a websocket connection is established for this user within the same authentication
context, then the SIP messages sent on that websocket connection will be authenticated
using the specified SIP identity.httpRequest - Authenticated HttpServletRequest object.IllegalStateException - if the HttpServletRequest is not authenticated.IllegalArgumentException - if the sipIdentity is null.SipWebSocketContext getSipWebSocketContext(String flowToken)
SipWebSocketContext that the flow token represents.flowToken - A string representing the Flow of the SIP WebSocket Connection.SipWebSocketContext if the flowToken represents a SIP over WebSocket Connection.
Null, otherwise.Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.