|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object m.c.m.proxyma.core.ProxyInternalResponsesFactory
public class ProxyInternalResponsesFactory
This Class its a factory of standard responses.
It's used by the ProxyEngine to build internal responses as error pages,
redirects and the page that shows the registered proxy folders.
NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.
Constructor Summary | |
---|---|
ProxyInternalResponsesFactory()
|
Method Summary | |
---|---|
static ProxymaResponseDataBean |
createErrorResponse(int errorCode,
ProxymaContext context)
Generates an error page response. |
protected static ProxymaResponseDataBean |
createFoldersListResponse(ProxymaContext context)
Generates a new response page with the list of the configured folders. |
static ProxymaResponseDataBean |
createRedirectResponse(java.lang.String destination,
ProxymaContext context)
Generates a listPage response to the specified destination. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyInternalResponsesFactory()
Method Detail |
---|
public static ProxymaResponseDataBean createRedirectResponse(java.lang.String destination, ProxymaContext context) throws java.net.MalformedURLException
destination
- the complete URL of the destination
java.net.MalformedURLException
public static ProxymaResponseDataBean createErrorResponse(int errorCode, ProxymaContext context)
the
- error status to report
protected static ProxymaResponseDataBean createFoldersListResponse(ProxymaContext context)
contezt
- the context that contains the registered folders to show.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |