|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Server
A representation of the server. Its main use it to be able to open a connection to the server sending back a executed method. The server has to choose which type of method to invoke and should support all method in the HTTP specification.
Method Summary | |
---|---|
java.lang.String |
getDomainName()
Returns the host name and port for this server. |
java.lang.String |
getPath()
Returns the path that we are mapping to. |
Rule |
getRule()
Returns the mapped rule so we can rewrite links. |
HttpServletResponse |
postExecute(HttpServletResponse response)
Can do handling of the response, if needed the server can also return a new HttpServletResponse if a wrapper of the response is needed. |
HttpServletRequest |
preExecute(HttpServletRequest request)
Can do any handling needed of a request before the HttpMethod is executed. |
void |
setConnectionExceptionRecieved(java.lang.Exception e)
Used to notify the server that there is a problem using the data this server supplied to the user. |
Method Detail |
---|
HttpServletRequest preExecute(HttpServletRequest request)
request
- The request we are receiving
HttpServletResponse postExecute(HttpServletResponse response)
response
- The response we are receiving
void setConnectionExceptionRecieved(java.lang.Exception e)
e
- The exception received when trying to use this servers datajava.lang.String getDomainName()
java.lang.String getPath()
Rule getRule()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |