public class SipInboundRequest extends SipRequest implements InboundRequest
| Constructor and Description |
|---|
SipInboundRequest(Context context,
Connection<Server> connection,
String methodName,
String resourceUri,
String protocol)
Constructor.
|
SipInboundRequest(SipInboundRequest request)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort()
Ask the connector to attempt to abort the related network connection, for
example immediately closing the socket.
|
void |
commit(Response response)
Asks the server connector to immediately commit the given response
associated to this request, making it ready to be sent back to the
client.
|
Address |
getAlertInfo()
Returns the alternative ring tone for the UAS.
|
List<EventType> |
getAllowedEventTypes()
Returns the list of supported event packages.
|
List<CacheDirective> |
getCacheDirectives()
Returns the cache directives.
Note that when used with HTTP connectors, this property maps to the "Cache-Control" header. |
List<Address> |
getCallerInfo()
Returns the description of the current caller.
|
ChallengeResponse |
getChallengeResponse()
Returns the authentication response sent by a client to an origin server.
|
ClientInfo |
getClientInfo()
Returns the client-specific information.
|
Conditions |
getConditions()
Returns the condition data applying to this call.
|
Connection<Server> |
getConnection()
Returns the related connection.
|
List<ContactInfo> |
getContacts()
Returns the data about the contacts.
|
Series<Cookie> |
getCookies()
Returns the cookies provided by the client.
|
Event |
getEvent()
Returns the description of an event notification.
|
Series<Header> |
getHeaders()
Returns the HTTP headers.
|
List<String> |
getInReplyTo()
Returns The list of references to call-ids.
|
Priority |
getPriority()
Returns the urgency of the request as perceived by the client.
|
ChallengeResponse |
getProxyChallengeResponse()
Returns the authentication response sent by a client to a proxy.
|
List<OptionTag> |
getProxyRequires()
Returns the proxy-sensitive features that the proxy must support.
|
List<Range> |
getRanges()
Returns the ranges to return from the target resource's representation.
|
List<RecipientInfo> |
getRecipientsInfo()
Returns the intermediary recipient information.
Note that when used with HTTP connectors, this property maps to the "Via" headers. |
List<Address> |
getRecordedRoutes()
Returns the list of routes completed by proxies to force future requests
to go through the proxy.
|
Reference |
getReferrerRef()
Returns the referrer reference if available.
|
Address |
getReferTo()
Returns the reference that the recipient of a
SipMethod.REFER
method should contact. |
Address |
getReplyTo()
Returns a logical return URI.
|
List<OptionTag> |
getRequires()
Returns the sensitive features that the server must support.
|
List<Address> |
getRoutes()
Returns the set of proxies used to force routing for a request.
|
Tag |
getSipIfMatch()
Returns the identifier of the specific event state that the request is
refreshing.
|
List<SipRecipientInfo> |
getSipRecipientsInfo()
Returns the intermediary recipients information.
|
Subscription |
getSubscriptionState()
Returns the state of the subscription.
|
List<OptionTag> |
getSupported()
Returns the extensions supported by the UAC.
|
Principal |
getUserPrincipal()
Returns the associated user principal.
|
List<Warning> |
getWarnings()
Returns the additional warnings information.
Note that when used with HTTP connectors, this property maps to the "Warning" headers. |
void |
setAlertInfo(Address alertInfo)
Sets the alternative ring tone for the UAS.
|
void |
setAllowedEventTypes(List<EventType> allowedEventTypes)
Sets the list of supported event packages.
|
void |
setCallerInfo(List<Address> callerInfo)
Sets the description of the current caller.
|
void |
setChallengeResponse(ChallengeResponse response)
Sets the authentication response sent by a client to an origin server.
|
void |
setContacts(List<ContactInfo> contact)
Sets the data about the contacts.
|
void |
setEvent(Event event)
Sets the description of an event notification.
|
void |
setHeaders(Series<Header> headers)
Put the headers in the request's attributes map.
|
void |
setInReplyTo(List<String> inReplyTo)
Sets the list of references to call-ids.
|
void |
setPriority(Priority priority)
Sets the urgency of the request as perceived by the client.
|
void |
setProxyChallengeResponse(ChallengeResponse response)
Sets the authentication response sent by a client to a proxy.
|
void |
setProxyRequires(List<OptionTag> proxyRequires)
Sets the proxy-sensitive features that the proxy must support.
|
void |
setRecipientsInfo(List<RecipientInfo> recipientsInfo)
Sets the modifiable list of intermediary recipients.
|
void |
setRecordedRoutes(List<Address> recordedRoutes)
Sets the list of routes completed by proxies to force future requests to
go through the proxy.
|
void |
setReferTo(Address referTo)
Sets the reference that the recipient of a
SipMethod.REFER method
should contact. |
void |
setReplyTo(Address replyTo)
Sets a logical return URI.
|
void |
setRequires(List<OptionTag> requires)
Sets the sensitive features that the server must support.
|
void |
setRoutes(List<Address> routes)
Sets the set of proxies used to force routing for a request.
|
void |
setSipIfMatch(Tag sipIfMatch)
Sets the identifier of the specific event state that the request is
refreshing.
|
void |
setSipRecipientsInfo(List<SipRecipientInfo> recipientsInfo)
Sets the intermediary recipients information.
|
void |
setSubscriptionState(Subscription subscription)
Sets the state of the subscription.
|
void |
setSupported(List<OptionTag> supported)
Sets the extensions supported by the UAC.
|
void |
setWarnings(List<Warning> warnings)
Sets the additional warnings information.
|
getCallId, getCommandSequence, getCreation, getFrom, getLastActivity, getMaxIdleTimeMs, getMimeVersion, getOrganization, getSubject, getTo, getTransaction, hasTimedOut, isHandled, setCallId, setCommandSequence, setFrom, setHandled, setMimeVersion, setOrganization, setSubject, setTo, updateLastActivitygetCurrent, getHostRef, getMaxForwards, getMethod, getOnResponse, getOriginalRef, getProtocol, getResourceRef, getRootRef, isAsynchronous, isConfidential, isEntityAvailable, isExpectingResponse, isLoggable, isSynchronous, setClientInfo, setConditions, setCookies, setHostRef, setHostRef, setLoggable, setMaxForwards, setMethod, setOnResponse, setOriginalRef, setProtocol, setRanges, setReferrerRef, setReferrerRef, setResourceRef, setResourceRef, setRootRef, toStringgetAttributes, getDate, getEntity, getEntityAsText, getOnError, getOnSent, release, setAttributes, setCacheDirectives, setDate, setEntity, setEntity, setOnError, setOnSentpublic SipInboundRequest(Context context, Connection<Server> connection, String methodName, String resourceUri, String protocol)
context - The context of the parent connector.connection - The associated network connection.methodName - The protocol method name.resourceUri - The target resource URI.protocol - The protocol name and version.public SipInboundRequest(SipInboundRequest request)
request - The request to copy.public boolean abort()
Requestpublic void commit(Response response)
Requestpublic Address getAlertInfo()
SipRequestgetAlertInfo in class SipRequestpublic List<EventType> getAllowedEventTypes()
SipRequestgetAllowedEventTypes in class SipRequestpublic List<CacheDirective> getCacheDirectives()
MessagegetCacheDirectives in class Messagepublic List<Address> getCallerInfo()
SipRequestgetCallerInfo in class SipRequestpublic ChallengeResponse getChallengeResponse()
RequestgetChallengeResponse in class Requestpublic ClientInfo getClientInfo()
getClientInfo in class Requestpublic Conditions getConditions()
getConditions in class Requestpublic Connection<Server> getConnection()
getConnection in interface InboundRequestpublic List<ContactInfo> getContacts()
SipRequestgetContacts in class SipRequestpublic Series<Cookie> getCookies()
getCookies in class Requestpublic Event getEvent()
SipRequestgetEvent in class SipRequestpublic Series<Header> getHeaders()
getHeaders in interface InboundRequestpublic List<String> getInReplyTo()
SipRequestgetInReplyTo in class SipRequestpublic Priority getPriority()
SipRequestgetPriority in class SipRequestpublic ChallengeResponse getProxyChallengeResponse()
RequestgetProxyChallengeResponse in class Requestpublic List<OptionTag> getProxyRequires()
SipRequestgetProxyRequires in class SipRequestpublic List<Range> getRanges()
Requestpublic List<RecipientInfo> getRecipientsInfo()
MessagegetRecipientsInfo in class Messagepublic List<Address> getRecordedRoutes()
SipRequestgetRecordedRoutes in class SipRequestpublic Reference getReferrerRef()
getReferrerRef in class Requestpublic Address getReferTo()
SipRequestSipMethod.REFER
method should contact.getReferTo in class SipRequestSipMethod.REFER
method should contact.public Address getReplyTo()
SipRequestgetReplyTo in class SipRequestpublic List<OptionTag> getRequires()
SipRequestgetRequires in class SipRequestpublic List<Address> getRoutes()
SipRequestgetRoutes in class SipRequestpublic Tag getSipIfMatch()
SipRequestgetSipIfMatch in class SipRequestpublic List<SipRecipientInfo> getSipRecipientsInfo()
SipRequestgetSipRecipientsInfo in class SipRequestpublic Subscription getSubscriptionState()
SipRequestgetSubscriptionState in class SipRequestpublic List<OptionTag> getSupported()
SipRequestgetSupported in class SipRequestpublic Principal getUserPrincipal()
public List<Warning> getWarnings()
MessagegetWarnings in class Messagepublic void setAlertInfo(Address alertInfo)
SipRequestsetAlertInfo in class SipRequestalertInfo - The alternative ring tone for the UAS.public void setAllowedEventTypes(List<EventType> allowedEventTypes)
SipRequestsetAllowedEventTypes in class SipRequestallowedEventTypes - The list of supported event packages.public void setCallerInfo(List<Address> callerInfo)
SipRequestsetCallerInfo in class SipRequestcallerInfo - The description of the current caller.public void setChallengeResponse(ChallengeResponse response)
RequestsetChallengeResponse in class Requestresponse - The authentication response sent by a client to an origin
server.public void setContacts(List<ContactInfo> contact)
SipRequestsetContacts in class SipRequestcontact - The data about the contacts.public void setEvent(Event event)
SipRequestsetEvent in class SipRequestevent - The description of an event notification.public void setHeaders(Series<Header> headers)
setHeaders in interface InboundRequestheaders - public void setInReplyTo(List<String> inReplyTo)
SipRequestsetInReplyTo in class SipRequestinReplyTo - The list of references to call-ids.public void setPriority(Priority priority)
SipRequestsetPriority in class SipRequestpriority - The urgency of the request as perceived by the client.public void setProxyChallengeResponse(ChallengeResponse response)
RequestsetProxyChallengeResponse in class Requestresponse - The authentication response sent by a client to a proxy.public void setProxyRequires(List<OptionTag> proxyRequires)
SipRequestsetProxyRequires in class SipRequestproxyRequires - The proxy-sensitive features that the proxy must support.public void setRecipientsInfo(List<RecipientInfo> recipientsInfo)
MessagesetRecipientsInfo in class MessagerecipientsInfo - A list of intermediary recipients.public void setRecordedRoutes(List<Address> recordedRoutes)
SipRequestsetRecordedRoutes in class SipRequestrecordedRoutes - The list of routes completed by proxies to force future
requests to go through the proxy.public void setReferTo(Address referTo)
SipRequestSipMethod.REFER method
should contact.setReferTo in class SipRequestreferTo - The reference that the recipient of a SipMethod.REFER
method should contact.public void setReplyTo(Address replyTo)
SipRequestsetReplyTo in class SipRequestreplyTo - A logical return URI.public void setRequires(List<OptionTag> requires)
SipRequestsetRequires in class SipRequestrequires - The sensitive features that the server must support.public void setRoutes(List<Address> routes)
SipRequestsetRoutes in class SipRequestroutes - The set of proxies used to force routing for a request.public void setSipIfMatch(Tag sipIfMatch)
SipRequestsetSipIfMatch in class SipRequestsipIfMatch - The identifier of the specific event state that the request is
refreshing.public void setSipRecipientsInfo(List<SipRecipientInfo> recipientsInfo)
SipRequestsetSipRecipientsInfo in class SipRequestrecipientsInfo - The intermediary recipients information.public void setSubscriptionState(Subscription subscription)
SipRequestsetSubscriptionState in class SipRequestsubscription - The state of the subscription.public void setSupported(List<OptionTag> supported)
SipRequestsetSupported in class SipRequestsupported - The extensions supported by the UAC.public void setWarnings(List<Warning> warnings)
MessagesetWarnings in class Messagewarnings - The warnings.Copyright © 2005–2015. All rights reserved.