Skip to content
Permalink
Browse files
[server] More Qt-style getter changes getHeader( key ) -> header( key )
  • Loading branch information
elpaso committed Apr 22, 2017
1 parent d03b005 commit 7f08e7206f90e4b86e98a59ab809306ceb28cb57
@@ -51,7 +51,7 @@ class QgsServerResponse
/**
* Return the header value
*/
virtual QString getHeader( const QString &key ) const = 0;
virtual QString header( const QString &key ) const = 0;

/**
* Return the list of all header keys
@@ -54,7 +54,7 @@ void QgsBufferServerResponse::setStatusCode( int code )
mReturnCode = code;
}

QString QgsBufferServerResponse::getHeader( const QString &key ) const
QString QgsBufferServerResponse::header( const QString &key ) const
{
return mHeaders.value( key );
}
@@ -42,7 +42,7 @@ class QgsBufferServerResponse: public QgsServerResponse

void clearHeader( const QString &key ) override;

QString getHeader( const QString &key ) const override;
QString header( const QString &key ) const override;

QList<QString> headerKeys() const override;

@@ -51,7 +51,7 @@ void QgsFcgiServerResponse::setHeader( const QString &key, const QString &value
mHeaders.insert( key, value );
}

QString QgsFcgiServerResponse::getHeader( const QString &key ) const
QString QgsFcgiServerResponse::header( const QString &key ) const
{
return mHeaders.value( key );
}
@@ -40,7 +40,7 @@ class SERVER_EXPORT QgsFcgiServerResponse: public QgsServerResponse

void clearHeader( const QString &key ) override;

QString getHeader( const QString &key ) const override;
QString header( const QString &key ) const override;

QList<QString> headerKeys() const override;

@@ -45,7 +45,7 @@ class QgsFilterResponseDecorator: public QgsServerResponse

void clearHeader( const QString &key ) override { mResponse.clearHeader( key ); }

QString getHeader( const QString &key ) const override { return mResponse.getHeader( key ); }
QString header( const QString &key ) const override { return mResponse.header( key ); }

QList<QString> headerKeys() const override { return mResponse.headerKeys(); }

@@ -71,7 +71,7 @@ void QgsRequestHandler::removeHeader( const QString &name )

QString QgsRequestHandler::header( const QString &name ) const
{
return mResponse.getHeader( name );
return mResponse.header( name );
}

QList<QString> QgsRequestHandler::headerKeys() const
@@ -64,7 +64,7 @@ class SERVER_EXPORT QgsServerResponse
/**
* Return the header value
*/
virtual QString getHeader( const QString &key ) const = 0;
virtual QString header( const QString &key ) const = 0;

/**
* Return the list of all header keys

0 comments on commit 7f08e72

Please sign in to comment.