• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package javax.sip.message;
2 
3 import java.text.ParseException;
4 import java.util.List;
5 import javax.sip.address.URI;
6 import javax.sip.header.CSeqHeader;
7 import javax.sip.header.CallIdHeader;
8 import javax.sip.header.ContentTypeHeader;
9 import javax.sip.header.FromHeader;
10 import javax.sip.header.MaxForwardsHeader;
11 import javax.sip.header.ServerHeader;
12 import javax.sip.header.ToHeader;
13 import javax.sip.header.UserAgentHeader;
14 
15 public interface MessageFactory {
createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content)16     Request createRequest(URI requestURI, String method, CallIdHeader callId,
17             CSeqHeader cSeq, FromHeader from, ToHeader to, List via,
18             MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
19             Object content) throws ParseException;
20 
createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content)21     Request createRequest(URI requestURI, String method, CallIdHeader callId,
22             CSeqHeader cSeq, FromHeader from, ToHeader to, List via,
23             MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
24             byte[] content) throws ParseException;
25 
createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards)26     Request createRequest(URI requestURI, String method, CallIdHeader callId,
27             CSeqHeader cSeq, FromHeader from, ToHeader to, List via,
28             MaxForwardsHeader maxForwards) throws ParseException;
29 
createRequest(String request)30     Request createRequest(String request) throws ParseException;
31 
createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content)32     Response createResponse(int statusCode, CallIdHeader callId,
33             CSeqHeader cSeq, FromHeader from, ToHeader to, List via,
34             MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
35             Object content) throws ParseException;
36 
createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content)37     Response createResponse(int statusCode, CallIdHeader callId,
38             CSeqHeader cSeq, FromHeader from, ToHeader to, List via,
39             MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
40             byte[] content) throws ParseException;
41 
createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards)42     Response createResponse(int statusCode, CallIdHeader callId,
43             CSeqHeader cSeq, FromHeader from, ToHeader to, List via,
44             MaxForwardsHeader maxForwards) throws ParseException;
45 
createResponse(int statusCode, Request request, ContentTypeHeader contentType, Object content)46     Response createResponse(int statusCode, Request request,
47             ContentTypeHeader contentType, Object content)
48             throws ParseException;
49 
createResponse(int statusCode, Request request, ContentTypeHeader contentType, byte[] content)50     Response createResponse(int statusCode, Request request,
51             ContentTypeHeader contentType, byte[] content)
52             throws ParseException;
53 
createResponse(int statusCode, Request request)54     Response createResponse(int statusCode, Request request)
55             throws ParseException;
56 
createResponse(String response)57     Response createResponse(String response) throws ParseException;
58 
setDefaultContentEncodingCharset(String defaultContentEncodingCharset)59     void setDefaultContentEncodingCharset(String defaultContentEncodingCharset)
60             throws NullPointerException, IllegalArgumentException;
setDefaultServerHeader(ServerHeader defaultServerHeader)61     void setDefaultServerHeader(ServerHeader defaultServerHeader);
setDefaultUserAgentHeader(UserAgentHeader defaultUserAgentHeader)62     void setDefaultUserAgentHeader(UserAgentHeader defaultUserAgentHeader);
63 }
64 
65