org.restlet.ext.sip
Class SipServerResource

java.lang.Object
  extended by org.restlet.resource.Resource
      extended by org.restlet.resource.UniformResource
          extended by org.restlet.resource.ServerResource
              extended by org.restlet.ext.sip.SipServerResource

public class SipServerResource
extends ServerResource

SIP server resource handling a received SIP transaction.

Author:
Thierry Boileau

Constructor Summary
SipServerResource()
           
 
Method Summary
 String getCallId()
          Returns the request's call ID.
 String getCommandSequence()
          Returns the request's command sequence.
 Address getFrom()
          Returns the request initiator's address.
 SipRequest getRequest()
           
 SipResponse getResponse()
           
 Address getTo()
          Returns the request recipient's address.
 void init(Context context, Request request, Response response)
           
 
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
 
Methods inherited from class org.restlet.resource.Resource
doError, doInit, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toObject, toRepresentation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SipServerResource

public SipServerResource()
Method Detail

getCallId

public String getCallId()
Returns the request's call ID.

Returns:
The request's call ID.

getCommandSequence

public String getCommandSequence()
Returns the request's command sequence.

Returns:
The request's command sequence.

getFrom

public Address getFrom()
Returns the request initiator's address.

Returns:
The request initiator's address.

getRequest

public SipRequest getRequest()
Overrides:
getRequest in class Resource

getResponse

public SipResponse getResponse()
Overrides:
getResponse in class Resource

getTo

public Address getTo()
Returns the request recipient's address.

Returns:
The request recipient's address.

init

public void init(Context context,
                 Request request,
                 Response response)
Overrides:
init in class Resource


Copyright © 2005-2013 Restlet.