Esempio n. 1
0
 @Override
 protected HttpMessage createMessage(String[] initialLine) throws Exception {
   return new DefaultHttpResponse(
       RtspVersions.valueOf(initialLine[0]),
       new HttpResponseStatus(Integer.parseInt(initialLine[1]), initialLine[2]),
       validateHeaders);
 }
Esempio n. 2
0
 @Override
 protected HttpMessage createMessage(String[] initialLine) throws Exception {
   return new DefaultHttpRequest(
       RtspVersions.valueOf(initialLine[2]),
       RtspMethods.valueOf(initialLine[0]),
       initialLine[1],
       validateHeaders);
 }