28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

You use the mime_mapping keyword to map specific file extensions (for example, .jpg or .png) to a<br />

particular Multipurpose Internet Mail Extensions (MIME) type.<br />

{<br />

}<br />

"mime_mapping" :<br />

[<br />

{<br />

"extension":"jpg",<br />

"mimetype":"image/jpeg"<br />

}<br />

]<br />

7. Prevent the generation of entity tags. (Optional)<br />

You use the enable_etags keyword to prevent the generation of entity tags (etags) for static Web content.<br />

{<br />

}<br />

"enable_etags":false<br />

8. Specify which, if any, URLs must be rewritten. (Optional)<br />

You use the rewrite_rules keyword to hide details of internal URL paths from external users, clients, and<br />

search engines.<br />

{<br />

}<br />

"rewrite_rules" :<br />

[<br />

{<br />

"source" : "...",<br />

"target" : "..."<br />

}<br />

]<br />

9. Save the .xsaccess file and place it in the package with which you want to associate the rules you have<br />

defined.<br />

10. Commit the file to the repository and activate it.<br />

In the Project Navigator view, right click the object you want to activate and choose Team > Activate in<br />

the popup menu.<br />

Related Links<br />

Application-Access File Keyword Options [page 53]<br />

The application-access (.xsaccess) file enables you to specify whether or not to expose package content,<br />

which authentication method is used to grant access, and what content is visible.<br />

4.4.7 The Application-Privileges File<br />

In <strong>SAP</strong> <strong>HANA</strong> Extended Application Services (<strong>SAP</strong> <strong>HANA</strong> XS), the application-privileges (.xssprivileges) file<br />

can be used to create or define the authorization privileges required for access to an <strong>SAP</strong> <strong>HANA</strong> XS application,<br />

for example, to start the application or to perform administrative actions on an application. These privileges can<br />

be checked by an application at runtime.<br />

The application-privileges file has only the file extension .xsprivileges; it does not have a name and is<br />

formatted according to JSON rules. Multiple .xsprivileges files are allowed, but only at different levels in the<br />

package hierarchy; you cannot place two .xsprivileges files in the same application package. The package<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Setting Up Your Application<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!