net.stepniak.api.utils
Class StaticServlet.Error

java.lang.Object
  extended by net.stepniak.api.utils.StaticServlet.Error
All Implemented Interfaces:
StaticServlet.LookupResult
Enclosing class:
StaticServlet

public static class StaticServlet.Error
extends Object
implements StaticServlet.LookupResult


Field Summary
protected  String message
           
protected  int statusCode
           
 
Constructor Summary
StaticServlet.Error(int statusCode, String message)
           
 
Method Summary
 long getLastModified()
           
 void respondGet(javax.servlet.http.HttpServletResponse resp)
           
 void respondHead(javax.servlet.http.HttpServletResponse resp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statusCode

protected final int statusCode

message

protected final String message
Constructor Detail

StaticServlet.Error

public StaticServlet.Error(int statusCode,
                           String message)
Method Detail

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface StaticServlet.LookupResult

respondGet

public void respondGet(javax.servlet.http.HttpServletResponse resp)
                throws IOException
Specified by:
respondGet in interface StaticServlet.LookupResult
Throws:
IOException

respondHead

public void respondHead(javax.servlet.http.HttpServletResponse resp)
Specified by:
respondHead in interface StaticServlet.LookupResult


Copyright © 2013. All Rights Reserved.