Class FileSender
- java.lang.Object
-
- com.google.apphosting.runtime.jetty94.FileSender
-
public class FileSender extends Object
Cass that sends data with headers.
-
-
Constructor Summary
Constructors Constructor Description FileSender(com.google.apphosting.utils.config.AppYaml appYaml)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckIfUnmodified(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.eclipse.jetty.util.resource.Resource resource)Check the headers to see if content needs to be sent.voidsendData(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletResponse response, boolean include, org.eclipse.jetty.util.resource.Resource resource, String urlPath)Writes or includes the specified resource.
-
-
-
Method Detail
-
sendData
public void sendData(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletResponse response, boolean include, org.eclipse.jetty.util.resource.Resource resource, String urlPath) throws IOExceptionWrites or includes the specified resource.- Throws:
IOException
-
checkIfUnmodified
public boolean checkIfUnmodified(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.eclipse.jetty.util.resource.Resource resource) throws IOExceptionCheck the headers to see if content needs to be sent.- Returns:
- true if the content is sent, false otherwise.
- Throws:
IOException
-
-