@SuppressWarnings("unchecked") @Override public void init() throws ServletException { super.init(); listener = (TransportAcceptListener)getServletContext().getAttribute("acceptListener"); if (listener == null) { throw new ServletException("No such attribute 'acceptListener' available in the ServletContext"); } transportFactory = (HttpTransportFactory)getServletContext().getAttribute("transportFactory"); if (transportFactory == null) { throw new ServletException("No such attribute 'transportFactory' available in the ServletContext"); } transportOptions = (HashMap<String, Object>)getServletContext().getAttribute("transportOptions"); wireFormat = (TextWireFormat)getServletContext().getAttribute("wireFormat"); if (wireFormat == null) { wireFormat = createWireFormat(); } }
@SuppressWarnings("unchecked") @Override public void init() throws ServletException { super.init(); listener = (TransportAcceptListener)getServletContext().getAttribute("acceptListener"); if (listener == null) { throw new ServletException("No such attribute 'acceptListener' available in the ServletContext"); } transportFactory = (HttpTransportFactory)getServletContext().getAttribute("transportFactory"); if (transportFactory == null) { throw new ServletException("No such attribute 'transportFactory' available in the ServletContext"); } transportOptions = (HashMap<String, Object>)getServletContext().getAttribute("transportOptions"); wireFormat = (TextWireFormat)getServletContext().getAttribute("wireFormat"); if (wireFormat == null) { wireFormat = createWireFormat(); } }
@SuppressWarnings("unchecked") @Override public void init() throws ServletException { super.init(); listener = (TransportAcceptListener)getServletContext().getAttribute("acceptListener"); if (listener == null) { throw new ServletException("No such attribute 'acceptListener' available in the ServletContext"); } transportFactory = (HttpTransportFactory)getServletContext().getAttribute("transportFactory"); if (transportFactory == null) { throw new ServletException("No such attribute 'transportFactory' available in the ServletContext"); } transportOptions = (HashMap<String, Object>)getServletContext().getAttribute("transportOptions"); wireFormat = (TextWireFormat)getServletContext().getAttribute("wireFormat"); if (wireFormat == null) { wireFormat = createWireFormat(); } }
@SuppressWarnings("unchecked") @Override public void init() throws ServletException { super.init(); listener = (TransportAcceptListener)getServletContext().getAttribute("acceptListener"); if (listener == null) { throw new ServletException("No such attribute 'acceptListener' available in the ServletContext"); } transportFactory = (HttpTransportFactory)getServletContext().getAttribute("transportFactory"); if (transportFactory == null) { throw new ServletException("No such attribute 'transportFactory' available in the ServletContext"); } transportOptions = (HashMap<String, Object>)getServletContext().getAttribute("transportOptions"); wireFormat = (TextWireFormat)getServletContext().getAttribute("wireFormat"); if (wireFormat == null) { wireFormat = createWireFormat(); } }