m.c.m.proxyma.plugins.retrivers
Class SimpleHttpRetriver

java.lang.Object
  extended by m.c.m.proxyma.plugins.retrivers.AbstractRetriver
      extended by m.c.m.proxyma.plugins.retrivers.SimpleHttpRetriver
All Implemented Interfaces:
ResourceHandler

public class SimpleHttpRetriver
extends AbstractRetriver

This plugin uses an URLConnection to retrive the remoteData form the real server and build a ResponseResourceDataBean that can be managed by transformers and serializers for further elaborations.

NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.

Version:
$Id: SimpleHttpRetriver.java 170 2010-07-02 21:16:10Z marcolinuz $
Author:
Marco Casavecchia Morganti (marcolinuz) [marcolinuz-at-gmail.com]

Field Summary
static java.lang.String CONTENT_ENCODING_HEADER
          The standard content-encoding header.
static java.lang.String TRANSFER_ENCODING_HEADER
          The standard Trensfer Encodign Header
 
Constructor Summary
SimpleHttpRetriver(ProxymaContext context)
          The default constructor for this class
It prepares the context logger.
 
Method Summary
 java.lang.String getHtmlDescription()
          Returns a short description of what the plugin does..
 java.lang.String getName()
          Returns the name of the plugin.
 void process(ProxymaResource aResource)
          This method register the time when it runs into a resource attribute.
 
Methods inherited from class m.c.m.proxyma.plugins.retrivers.AbstractRetriver
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_ENCODING_HEADER

public static final java.lang.String CONTENT_ENCODING_HEADER
The standard content-encoding header.

See Also:
Constant Field Values

TRANSFER_ENCODING_HEADER

public static final java.lang.String TRANSFER_ENCODING_HEADER
The standard Trensfer Encodign Header

See Also:
Constant Field Values
Constructor Detail

SimpleHttpRetriver

public SimpleHttpRetriver(ProxymaContext context)
The default constructor for this class
It prepares the context logger. NOTE: Every plugin to work must have a constructor that takes a ProxymaContext as parameter.

Method Detail

process

public void process(ProxymaResource aResource)
             throws java.lang.Exception
This method register the time when it runs into a resource attribute.

Specified by:
process in interface ResourceHandler
Specified by:
process in class AbstractRetriver
Parameters:
aResource - any ProxymaResource
Throws:
java.lang.Exception
See Also:
for more informations

getName

public java.lang.String getName()
Returns the name of the plugin.

Specified by:
getName in interface ResourceHandler
Specified by:
getName in class AbstractRetriver
Returns:
the name of the plugin.

getHtmlDescription

public java.lang.String getHtmlDescription()
Returns a short description of what the plugin does..
You can use html tags into it.
The result of this method call can be used by any interface to explain for what is the puropse of the plugin.

Specified by:
getHtmlDescription in interface ResourceHandler
Specified by:
getHtmlDescription in class AbstractRetriver
Returns:
a short description of the plugin


Copyright © 2010. All Rights Reserved.