public Content getContent() { // ensure we only try to read the content once - as this method may be called several times // but the underlying inputstream itself can only be processed a single time if (content == null) { try { content = new InputStreamContent(req.getInputStream(), getContentType(), req.getCharacterEncoding()); } catch(IOException e) { throw new WebScriptException("Failed to retrieve request content", e); } } return content; }
public Content getContent() { // ensure we only try to read the content once - as this method may be called several times // but the underlying inputstream itself can only be processed a single time if (content == null) { try { content = new InputStreamContent(req.getInputStream(), getContentType(), req.getCharacterEncoding()); } catch(IOException e) { throw new WebScriptException("Failed to retrieve request content", e); } } return content; }
public Content getContent() { // ensure we only try to read the content once - as this method may be called several times // but the underlying inputstream itself can only be processed a single time if (content == null) { try { content = new InputStreamContent(req.getInputStream(), getContentType(), req.getCharacterEncoding()); } catch(IOException e) { throw new WebScriptException("Failed to retrieve request content", e); } } return content; }
this.serviceMatch = serviceMatch; String contentType = getContentType();
this.serviceMatch = serviceMatch; String contentType = getContentType();
this.serviceMatch = serviceMatch; String contentType = getContentType();