Skip to content

Commit

Permalink
Added JavaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Del Bene committed Dec 6, 2013
1 parent 2b586cf commit 4c6ad80
Showing 1 changed file with 10 additions and 9 deletions.
Expand Up @@ -22,15 +22,15 @@

/**
* General interface to serialize/deserialize an object to/from request/response.
*
*
* @author andrea del bene
*
*
*/
public interface IWebSerialDeserial
{
/**
* Write the object in input to the response converting it to a given MIME type.
*
*
* @param targetObject
* the object instance to serialize to string.
* @param response
Expand All @@ -44,33 +44,34 @@ public void objectToResponse(Object targetObject, WebResponse response, String m

/**
* Extract an instance of argClass form the request.
*
*
* @param request
* the request object.
* @param argClass
* the type of the object we want to extract.
* @param mimeType
* the MIME type of the request.
*
*
* @return the object extracted from the request.
*/
public <T> T requestToObject(WebRequest request, Class<T> argClass, String mimeType)
throws WicketRuntimeException;

/**
* Check if a given MIME type is handled.
*
*
* @param mimeType
* the MIME type we want to check.
* @return true if the MIME type is supported, false otherwise.
*/
public boolean isMimeTypeSupported(String mimeType);

/**
*
*
* Returns the {@link IObjectSerialDeserial} for the specific MIME type
*
* @param mimeType
* @return
* the appropriate IObjectSerialDeserial.
*/
public <T> IObjectSerialDeserial<T> getIObjectSerialDeserial(String mimeType);
}

0 comments on commit 4c6ad80

Please sign in to comment.