public class XServletHandlerOPTIONS extends Object implements IXServletHandler
service method) to allow a servlet
to handle a OPTIONS request. An OPTIONS request returns the allowed HTTP
methods supported by the servlet in the ALLOW HTTP response header.| Constructor and Description |
|---|
XServletHandlerOPTIONS(com.helger.commons.functional.ISupplier<String> aAllowProvider)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
onRequest(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse,
com.helger.http.EHttpVersion eHTTPVersion,
com.helger.commons.http.EHttpMethod eHTTPMethod,
com.helger.web.scope.IRequestWebScope aRequestScope)
Handle the servlet action for a certain request and response.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonServletDestroy, onServletInitpublic void onRequest(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull com.helger.http.EHttpVersion eHTTPVersion, @Nonnull com.helger.commons.http.EHttpMethod eHTTPMethod, @Nonnull com.helger.web.scope.IRequestWebScope aRequestScope) throws javax.servlet.ServletException, IOException
IXServletHandleronRequest in interface IXServletHandleraHttpRequest - HTTP servlet request. Never null.aHttpResponse - HTTP servlet response. Never null.eHTTPVersion - HTTP version. Never null.eHTTPMethod - HTTP method. Never null.aRequestScope - Request scope. Never null.javax.servlet.ServletException - On business errorIOException - On IO errorCopyright © 2017–2019 Philip Helger. All rights reserved.