|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cafesip.jiplet.ScopedVariables
org.cafesip.jiplet.JipletEvent
org.cafesip.jiplet.JipletRequest
public class JipletRequest
This class conatins methods that is used by a jiplet to retrieve information about a request event. When a SIP request message is received, the container passes on the request event to the jiplets matching the specified selection criteria. The callback method Jiplet.processRequest() is called by the container. This object is passed as a parameter.
| Constructor Summary | |
|---|---|
protected |
JipletRequest()
A constructor for this class. |
| Method Summary | |
|---|---|
Jiplet |
getJiplet()
|
javax.sip.RequestEvent |
getRequestEvent()
|
JipletSession |
getSession(boolean create)
Get the session object associated with this request. |
SipCommunicator |
getSipCommunicator()
This method returns a SIP communicator object which can be used to proxy SIP requests, responses, handle proxy timeouts as well as other SIP-related operations. |
java.security.Principal |
getUserPrincipal()
|
boolean |
isUserInRole(java.lang.String role)
Returns a boolean indicating whether the authenticated user is included in the specified logical "role". |
protected void |
setJiplet(Jiplet jiplet)
|
protected void |
setRequestEvent(javax.sip.RequestEvent requestEvent)
|
protected void |
setRoles(java.lang.String[] roles)
|
protected void |
setUserPrincipal(java.security.Principal userPrincipal)
|
| Methods inherited from class org.cafesip.jiplet.JipletEvent |
|---|
getForward, getJipletContext, getSession, setForward, setJipletContext |
| Methods inherited from class org.cafesip.jiplet.ScopedVariables |
|---|
getAttribute, getAttributeNames, removeAttribute, setAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JipletRequest()
| Method Detail |
|---|
public javax.sip.RequestEvent getRequestEvent()
protected void setRequestEvent(javax.sip.RequestEvent requestEvent)
requestEvent - The requestEvent to set.public JipletSession getSession(boolean create)
create - create the session object if it does not exist.
public java.security.Principal getUserPrincipal()
protected void setUserPrincipal(java.security.Principal userPrincipal)
userPrincipal - The userPrincipal to set.public boolean isUserInRole(java.lang.String role)
role - a String specifying the name of the role
protected void setRoles(java.lang.String[] roles)
roles - The roles to set.public Jiplet getJiplet()
protected void setJiplet(Jiplet jiplet)
jiplet - The jiplet to set.public SipCommunicator getSipCommunicator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||