uri.queryParam( name, value );
break;
}
}
else if ( StringUtils.equalsIgnoreCase( type, "resource" ) ) {
final FileResource fileResource = fileResourceResolver.resolve( value );
switch ( httpMethod ) {
case POST:
case PUT:
values.add( name, new ByteArrayResource( fileResource.getContent() )
{
@Override
public String getFilename() {
return fileResource.getFileName();
}
} );
break;
default:
fail( "Parameter type resource is only usable with POST and PUT" );