Class EndPoint
java.lang.Object
com.jk.services.server.commons.models.EndPoint
This class represents an end-point definition.
 
It contains information about the path, HTTP method, method name, accepted MIME type, returned MIME type, and parameters associated with the end-point.
- Version:
 - 1.0
 - Author:
 - Dr. Jalal H. Kiswani
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionThis method retrieves the accepted MIME type for incoming requests to the end-point.This method retrieves the HTTP method used to access the end-point.This method retrieves the method name associated with the end-point.This method retrieves the parameters associated with the end-point.getPath()This method retrieves the path at which the end-point is accessible.This method retrieves the MIME type for the response returned by the end-point.voidsetAcceptMimeType(String acceptMimeType) This method sets the accepted MIME type for incoming requests to the end-point to the provided value.voidsetHttpMethod(String httpMethod) This method sets the HTTP method used to access the end-point to the provided value.voidThis method sets the method name associated with the end-point to the provided value.voidThis method sets the parameters associated with the end-point to the provided value.voidThis method sets the path at which the end-point is accessible to the provided value.voidsetReturnMimeType(String returnMimeType) This method sets the MIME type for the response returned by the end-point to the provided value. 
- 
Constructor Details
- 
EndPoint
public EndPoint() 
 - 
 - 
Method Details
- 
getPath
This method retrieves the path at which the end-point is accessible.- Returns:
 - the path at which the end-point is accessible.
 
 - 
setPath
This method sets the path at which the end-point is accessible to the provided value.- Parameters:
 path- Specifies the new path at which the end-point is accessible.
 - 
getMethod
This method retrieves the method name associated with the end-point.- Returns:
 - the method name associated with the end-point.
 
 - 
setMethod
This method sets the method name associated with the end-point to the provided value.- Parameters:
 method- Specifies the new method name associated with the end-point.
 - 
getAcceptMimeType
This method retrieves the accepted MIME type for incoming requests to the end-point.- Returns:
 - the accepted MIME type for incoming requests to the end-point
 
 - 
setAcceptMimeType
This method sets the accepted MIME type for incoming requests to the end-point to the provided value.- Parameters:
 acceptMimeType- Specifies the new accepted MIME type for incoming requests to the end-point.
 - 
getReturnMimeType
This method retrieves the MIME type for the response returned by the end-point.- Returns:
 - the MIME type for the response returned by the end-point.
 
 - 
setReturnMimeType
This method sets the MIME type for the response returned by the end-point to the provided value.- Parameters:
 returnMimeType- Specifies the new MIME type for the response returned by the end-point.
 - 
getParams
This method retrieves the parameters associated with the end-point.- Returns:
 - the parameters associated with the end-point.
 
 - 
setParams
This method sets the parameters associated with the end-point to the provided value.- Parameters:
 params- Specifies the new parameters associated with the end-point.
 - 
getHttpMethod
This method retrieves the HTTP method used to access the end-point.- Returns:
 - the HTTP method used to access the end-point.
 
 - 
setHttpMethod
This method sets the HTTP method used to access the end-point to the provided value.- Parameters:
 httpMethod- Specifies the new HTTP method used to access the end-point.
 
 -