All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.pkts.packet.sip.header.RecordRouteHeader Maven / Gradle / Ivy

There is a newer version: 3.0.10
Show newest version
/**
 * 
 */
package io.pkts.packet.sip.header;

import io.pkts.buffer.Buffer;
import io.pkts.buffer.Buffers;
import io.pkts.packet.sip.SipParseException;
import io.pkts.packet.sip.address.Address;
import io.pkts.packet.sip.header.impl.RecordRouteHeaderImpl;

/**
 * 
 * Source: RFC 3261 section 20.30
 * 
 * 

* The Record-Route header field is inserted by proxies in a request to force * future requests in the dialog to be routed through the proxy. *

* *

* Examples of its use with the Route header field are described in Sections * 16.12.1. *

*

* Example: * *

 *    Record-Route: <sip:server10.biloxi.com;lr>,
 *                  <sip:bigbox3.site3.atlanta.com;lr>
 * 
* *

* * @author [email protected] */ public interface RecordRouteHeader extends AddressParametersHeader { Buffer NAME = Buffers.wrap("Record-Route"); @Override RecordRouteHeader clone(); /** * Frame the value as a {@link RecordRouteHeader}. * * @param value * @return * @throws SipParseException in case anything goes wrong while parsing. */ public static RecordRouteHeader frame(final Buffer buffer) throws SipParseException { final Object[] result = AddressParametersHeader.frame(buffer); return new RecordRouteHeaderImpl((Address) result[0], (Buffer) result[1]); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy