public abstract class AbstractPropertyCollectionHandlingServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
static String |
MESSAGE
String post appended to a property name to return a Property specific message.
|
Constructor and Description |
---|
AbstractPropertyCollectionHandlingServlet()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static String |
getCollectionMessage(javax.servlet.http.HttpServletRequest request)
Gets the WebName.COLLECTION_MESSAGE from the the request.
|
abstract dk.heick.properties.PropertyCollection |
getPropertyCollection()
Returns the PropertyCollection initialized in a WebContext .
|
static String |
getPropertyHandlingMessage(javax.servlet.http.HttpServletRequest request,
dk.heick.properties.Property<?> property)
Gets a message set for an individual Property.
|
abstract String |
getPropertyIndexURL(String contextPath)
The page url for the page which displays your properties.
|
String |
getReferer(javax.servlet.http.HttpServletRequest request)
Get the page where the request originated from, otherwise "PropertyIndexURL" is used.
|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String MESSAGE
public AbstractPropertyCollectionHandlingServlet()
public abstract dk.heick.properties.PropertyCollection getPropertyCollection()
public abstract String getPropertyIndexURL(String contextPath)
contextPath
- the contextPath from the HttpServletRequest.protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public String getReferer(javax.servlet.http.HttpServletRequest request)
request
- the httpServletRequestpublic static String getCollectionMessage(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequestWebName.COLLECTION_MESSAGE
public static String getPropertyHandlingMessage(javax.servlet.http.HttpServletRequest request, dk.heick.properties.Property<?> property)
request
- the HttpServletRequestproperty
- the Property