Package com.iizix.ws.engine
Interface IRequestContent
- All Known Implementing Classes:
- URLEncodedContent
public interface IRequestContent
The request content interface used to format the request appropriately depending on what is being sent.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- static final StringThe String: "Accept".- static final StringThe String: "Accept-Charset".- static final StringThe String: "Accept-Encoding".- static final StringThe String: "Content-Length".- static final StringThe String: "Content-Type".- static final StringThe String: "X-HTTP-Method-Override".
- Method SummaryModifier and TypeMethodDescription- void- onPostProcessRequest- (RESTfulRequest request, boolean doPerform) Post-processes the request as required, typically to modify the URLConnection, called before the "connect" method is called for URLConnection.- void- onPreProcessRequest- (RESTfulRequest request, boolean doPerform) Pre-processes the request as required, i.e.
- Field Details- ACCEPTThe String: "Accept".- See Also:
 
- ACCEPT_CHARSETThe String: "Accept-Charset".- See Also:
 
- ACCEPT_ENCODINGThe String: "Accept-Encoding".- See Also:
 
- CONTENT_TYPEThe String: "Content-Type".- See Also:
 
- CONTENT_LENGTHThe String: "Content-Length".- See Also:
 
- X_HTTP_METHOD_OVERRIDEThe String: "X-HTTP-Method-Override".- See Also:
 
 
- Method Details- onPreProcessRequestvoid onPreProcessRequest- (RESTfulRequest request, boolean doPerform) throws PropException, UnsupportedEncodingException, URISyntaxException Pre-processes the request as required, i.e. to change the URL to add a Query String for e.g. a GET method.- This call is done prior to establishing the URLConnection. - Parameters:
- request- The request.
- doPerform- Flag to perform the transaction or false to test validity.
- Throws:
- PropException- For property errors.
- UnsupportedEncodingException- For unsupported encodings.
- URISyntaxException- For URI syntax errors for parameters.
- UnsupportedEncodingException- For unsupported encodings.
 
- onPostProcessRequestvoid onPostProcessRequest- (RESTfulRequest request, boolean doPerform) throws PropException, IOException, UnsupportedEncodingException Post-processes the request as required, typically to modify the URLConnection, called before the "connect" method is called for URLConnection.- Parameters:
- request- The request.
- doPerform- Flag to perform the transaction or false to test validity.
- Throws:
- PropException- For property errors.
- IOException- For I/O errors.
- UnsupportedEncodingException- For unsupported encodings.