Restlet Framework 2.2.1
Android

org.restlet.ext.sip
Class SipServerResource

java.lang.Object
  extended by org.restlet.resource.Resource
      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
 java.lang.String getCallId()
          Returns the request's call ID.
 java.lang.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, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, patch, patch, 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 java.lang.String getCallId()
Returns the request's call ID.

Returns:
The request's call ID.

getCommandSequence

public java.lang.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

Restlet Framework 2.2.1
Android

Copyright © 2005-2014 Restlet.